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

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
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