Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ArraySum{
- public static void main ( String[] args ) {
- int[][] data = { {3, 2, 5},
- {1, 4, 4, 8, 13},
- {9, 1, 0, 2},
- {0, 2, 6, 3, -1, -8} };
- // declare the sum
- ???
- // compute the sum
- for ( int row=0; row < data.length; row++) {
- for ( int col=0; col < ???; col++) {
- ???
- }
- }
- // write out the sum
- c.println( );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement