Column 1 | Column 2 | Column 3

Q1Row1 - Input Number | Input Number | Input Number

Q1Row2 - Input Number | Input Number | Input Number

Q1Row3 - Input Number | Input Number | Input Number

.....

Q1Row300 - Input Number | Input Number | Input Number

I want to check as below:

Q1Row1Col1+Q1Row1Col2+Q1Row1Col3=0 => Error Message

....

Q1Row300Col1+Q1Row300Col2+Q1Row300Col3=0 => Error Message

How could i fixed this?

If i have 2 column, i just change

c<=2, is it right?