answersLogoWhite

0


Best Answer

public class PrintCubes {

public static void main(String args[]){

for (int i = 0; i <= 10; i++) {

int cube = i * i * i;

System.out.print(cube + " ");

}

}

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Java program to print 1 8 27 64.?
Write your answer...
Submit
Still have questions?
magnify glass
imp