-2

Below is a two dimensional array ineteger variable.

int[ ][ ] value={{1, 2, 3, 4 }, {5, 6,7}, {8, 9}, {10}}

please write a java code that can print the values and sum the column values as shown below:

        1    2   3   4  
        5    6   7
        8    9
        10  

Sum =   24   17  10  4

Regards.

Votes + Comments
hopeless homework kiddo
3
Contributors
2
Replies
14
Views
3 Years
Discussion Span
Last Post by jwenting
2

3 years reading this site and you
a) still don't know how to do something that basic
and
b) still don't know we're not your homework service?

sheesh

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.