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
For
For
Oct 28, 2014 at 9:10am UTC
HelenI
(51)
Can I put an IF statement in an For statement ? How do I do it?
Oct 28, 2014 at 9:12am UTC
Peter87
(11234)
Yeah sure.
1
2
3
4
5
6
7
for
(
int
i = 0; i < 10; ++i) {
if
(i == 2) {
// do something
} }
Nov 1, 2014 at 1:32pm UTC
HelenI
(51)
thanks
Topic archived. No new replies allowed.