Question: Write a java program that uses a two-dimensional array to store and display the following values in a 5 x 5 table: 1 4 9
Write a java program that uses a two-dimensional array to store and display the following values in a 5 x 5 table:
1 4 9 16 25 4 16 36 64 100 9 36 81 144 225 16 64 144 256 400 25 100 225 400 625
Your program should generate (i.e. calculate) the numbers so that:
The square of the first five numbers 1 5 are displayed in the first row and column
The remaining values are multiples of the values in the first row and column
(Your program should output the numbers in a neat format, but do not worry if the larger values are slightly out of alignment.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
