Is it possible to update a variable inside a while loop?


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
Topic archived. No new replies allowed.