+ 1
do...while
A question, in the code int num; do { cout << " enter a number:" ; cin>>number; if ( number>100 ) cout <<" re-enter\n" ; } while ( number >100 ) ; ¿ what is being valited?
5 Respuestas
+ 3
The program perseveres until a number <= 100 is entered.
+ 4
If u have a number greater than 100, the program will ask you to re enter a number once again till its below 100, them proceed to the while and execute the block of code. Though these some error in your loop as they test similar condition.
+ 2
thank you Washie 😶☺
+ 1
You are welcome Rosa
+ 1
thank you very much Sonic 🙂