- #1

- 19

- 0

## Main Question or Discussion Point

Hi, everybody. Could some one please help find the greatest number in each row of a matrix, this is what i have so far.. am i one the right track? (using C code)

Float big;

Big = -9999999.99999

for( i==0) {

for( j = 0; j < n; j++) {

if( *(mat + (j*0) + 0) > big) {

bigc1 = *(mat + 0*j + 0);

}}

for( i==1) {

for( j = 0; j < n; j++) {

if( *(mat + (j*1) + 1) > big) {

bigc2 = *(mat + 1*j + 1);

}}

for( i==2) {

for( j = 0; j < n; j++) {

if( *(mat + (j*2) + 2) > big) {

bigc3 = *(mat + 2*j + 2);

}}

Float big;

Big = -9999999.99999

for( i==0) {

for( j = 0; j < n; j++) {

if( *(mat + (j*0) + 0) > big) {

bigc1 = *(mat + 0*j + 0);

}}

for( i==1) {

for( j = 0; j < n; j++) {

if( *(mat + (j*1) + 1) > big) {

bigc2 = *(mat + 1*j + 1);

}}

for( i==2) {

for( j = 0; j < n; j++) {

if( *(mat + (j*2) + 2) > big) {

bigc3 = *(mat + 2*j + 2);

}}