+ 1

How to write do while loop from 10 - 100

24th Apr 2017, 8:55 PM
Evans Godsaint Junior
Evans Godsaint Junior - avatar
4 Réponses
+ 15
#include <iostream> using namespace std; int main () { // Local variable declaration: int a = 10; // do loop execution do { cout << a << endl; a = a + 1; }while( a <= 100 ); return 0; }
24th Apr 2017, 9:04 PM
Agus Mei
Agus Mei - avatar
+ 4
?
24th Apr 2017, 9:01 PM
Edward
+ 4
are you asking to print the numbers 10 - 100? using a do while loop? please be more specific next time
24th Apr 2017, 9:02 PM
Edward
+ 1
yh print out 10 - 100 using do while loop
24th Apr 2017, 9:04 PM
Evans Godsaint Junior
Evans Godsaint Junior - avatar