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 please
help please
Jul 27, 2011 at 6:18pm UTC
costaaa
(18)
What are the values of i and n after this loop executes?
int n = 0;
for(int i = 0; i < 12; i++) {
n += 3;
}
Jul 27, 2011 at 7:04pm UTC
cnoeval
(643)
You won't find much help if you ask us to do your homework. Either work it through one step at a time or code it and run it after adding some print statements. At least take a guess and we'll help you guide you...
Jul 27, 2011 at 7:16pm UTC
Anon1010
(20)
The loop executes 12 times.
Each time n increases by 3.
n starts as 0
so.....
Topic archived. No new replies allowed.