answersLogoWhite

0

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

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
ReneRene
Change my mind. I dare you.
Chat with Rene
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan

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