Question: Create a new class (program) (they should be no spaces in the files name) that displays the first 10 powers of 2. Note: use the
Create a new class (program) (they should be no spaces in the files name) that displays the first 10 powers of 2. Note: use the Math.pow( ) method. You can basically replace: System.out.println(2^1 is 2) with System.out.println(2^1 is + Math.pow(2,1)) and so on.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
