Help With a Loop


Print to the screen the first n positive cubes, namely 13 = 1, 23 = 8, 33 = 27, ..., n3.

Can anyone help me with this? I'm sure I need to use a loop, but I'm not sure how to set it up.
Last edited on
Really? No one can help me?
closed account (SECMoG1T)
1
2
3
4
 for (i =0; i <n; i++)
  {
     Print i*i*i; 
}
Topic archived. No new replies allowed.