0

Can anyone give simple example of using for and while loop together?

26th Nov 2016, 11:06 AM
Bomte Gapak
Bomte Gapak - avatar
3 Answers
+ 1
int i=3; j=3; while(j){ for(i=3;i<=6;I++){ cout<<i<<" "<<j; } j--}
26th Nov 2016, 11:43 AM
Sandeep Chatterjee
0
for(int i=1;i<=10;i++) { cout<<i; }
26th Nov 2016, 9:17 PM
Farshid
0
#include <iostream> using namespace std; int main() { for (int ans; ans < 100; ans++) { cout << ans << endl; } return 0 }
28th Nov 2016, 9:27 PM
Gooby Doo
Gooby Doo - avatar