124k views
2 votes
Write a program using for loop to find the cube of numbers from 50-100

User Enowneb
by
5.2k points

1 Answer

1 vote

Answer and Explanation:

JAVA

for(int i = 50; i <= 100 i++;)

{

int cubedNum = Math.pow(i, 4);

System.out.println(cubedNum);

}

User Duncan Lawler
by
4.9k points