i have this array code that would give the sum of the random numbers in the columns, however i could not figure out how to display the sum of the rows.. can someone help.. Thanks a lot...
import java.util.*;
public class tabulated {
public static void main(String[]args){
Random rand=new Random();
int [][]nos=new int[7][7];
int sumc=0;
for(int i=0;i<nos.length;i++){
for(int l=0;l<nos[i].length;l++){
nos[i][l]= rand.nextInt(100);
sumc=nos [i][0]+nos [i][1]+nos [i][2];
System.out.print( nos [i][l]+"\t" );
}
System.out.println("="+sumc);
}
System.out.println();
}
}