Program to print numbers in java


Assignment:

Write a Java application that prints out numbers 2, 4 and 6 in row 1, numbers 3, 5 and 7 in row 2, numbers 8, 10 and 12 in row 3 and numbers 9, 11 and 13 in row 4. There should be an underline followed by a row of numbers that adds the numbers in the respective columns. The program should print out the information as follows:

2 4 6
3 5 7
8 10 12
9 11 13
__________
22 30 38

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Program to print numbers in java
Reference No:- TGS01897306

Now Priced at $30 (50% Discount)

Recommended (94%)

Rated (4.6/5)