cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Is it possible to update a variable insi
Is it possible to update a variable inside a while loop?
Sep 8, 2011 at 4:31pm UTC
keys
(1)
Is there a way to update a variable inside a while loop so that each time it loops the variable is is a different answer?
while (x>1) {
cout << x/2;
continue;
cout << "Finished" << endl;
}
Last edited on
Sep 8, 2011 at 5:20pm UTC
Topic archived. No new replies allowed.