0

In while loop can the printed result increases

int num=3 while (num <31){cout <<"3×1:"<<num <<endl; num=+3} /* 3×1:3 3×1:6 ........*/ can the result out in the form of /* 3×1:3 3×2:6 3×3:9......*/

6th Apr 2018, 9:56 AM
Suneel Paudel
Suneel Paudel - avatar
2 ответов
+ 2
int num=1; while(num < 11) { cout << "3x" << num << ":" << num*3 << endl; num++; }
6th Apr 2018, 10:00 AM
Aaron Eberhardt
Aaron Eberhardt - avatar
6th Apr 2018, 12:56 PM
Luciano Ariel Caputi
Luciano Ariel Caputi - avatar