Hi,(adsbygoogle = window.adsbygoogle || []).push({});

Please I need help to do the following:

add the elements of each colunm of a matrix and

Count the number of colunm whose the sum is less than 1.

I did this:i is the indice of line , j =indice of colunm.. size = dimension of the square matrix.

for(j=0;j<size;j++)

{ for(i=0;i<size;i++)

{sum=sum+A[j];

if (sum<1)

count=count+1;}

}

The compiler says I am wrong . I have to turn this in few hours...

please help me!

Thanks

B

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matrix colunms-Urgent

**Physics Forums | Science Articles, Homework Help, Discussion**