+ 4

Plz help me with this pattern with nested for loops.

1234567234567345674567567677

5th Sep 2016, 7:22 PM
rehan altaf
rehan altaf - avatar
3 ответов
+ 9
for(int i=1;i<=7;i++){ for(int j=i;j<=7;j++) cout << j; cout << endl; }
5th Sep 2016, 10:43 PM
bogdan
bogdan - avatar
+ 2
just omit the "cout<<endl " section
6th Sep 2016, 3:30 PM
Chinmay Majumdar
Chinmay Majumdar - avatar
0
thanks
6th Sep 2016, 3:08 PM
rehan altaf
rehan altaf - avatar