do while loop c++ loops continuously
do {
// codes;
}
while (testExpression);
4.2
5
//vars
int A; //any variable will do
// loop
do {
A = 0; // clearing last input from last looping
cout << "request value for A";
cin >> A;
}
while (A != 'any value other than zero');
Thank you!
5
0
0
0
while(/*Expression*/){
//Statements go here
}
Thank you!
0
0
Are there any code examples left?
New code examples in category C++