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 - The Fusion of Science and Community**

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

Loading...

Similar Threads for Matrix colunms Urgent | Date |
---|---|

WaveGrid - Non-equilibrium Emergence Sandbox | Jan 22, 2018 |

Python Importing a matrix into Numpy | Oct 3, 2017 |

Reading matrix elements from a file in Fortran77 | Sep 18, 2017 |

Fortran Matrix times vector in Fortran | Jul 28, 2017 |

Java Urgent - Single quote character appearing as æ (Java) | Oct 2, 2013 |

**Physics Forums - The Fusion of Science and Community**