cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Help With a Loop
Help With a Loop
Mar 8, 2015 at 11:38pm UTC
macler16
(17)
Print to the screen the first
n
positive cubes
, namely 1
3
= 1, 2
3
= 8, 3
3
= 27, ...,
n
3
.
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
Mar 9, 2015 at 7:29am UTC
Mar 9, 2015 at 4:36am UTC
macler16
(17)
Really? No one can help me?
Mar 9, 2015 at 4:49am UTC
closed account (
SECMoG1T
)
1
2
3
4
for
(i =0; i <n; i++) { Print i*i*i; }
Topic archived. No new replies allowed.