Question: Write a Java program called PowTable that uses nested for loops to print a table of the numbers 1 through 9 raised to the 2

Write a Java program called PowTable that uses nested for loops to print a table of the numbers 1 through 9 raised to the 2nd, 3rd, and 4th power. Review the Math.pow(double, a, double b) method. Review the below output. Use the outer and inner loop counters as the arguments to Math.pow(). Make sure to include the row and column headings. (3 points)

2 3 4

1 1.0 1.0 1.0

2 4.0 8.0 16.0

3 9.0 27.0 81.0

4 16.0 64.0 256.0

5 25.0 125.0 625.0

6 36.0 216.0 1296.0

7 49.0 343.0 2401.0

8 64.0 512.0 4096.0

9 81.0 729.0 6561.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!