147,254 views
36 votes
36 votes
Write a program using For loop to find the cube of the numbers from 50 to 100

User Bilkis
by
2.8k points

1 Answer

27 votes
27 votes

Answer and Explanation:

For JAVA programming.

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

{

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

System.out.println(cubedNum);

}

User ManOVision
by
2.4k points