If you want print this figure 1234567654321 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If you want print this figure 1234567654321

{ int I, j; for (i=1;i <7;i++) cout <<i; for(j=i;j>0;j--) cout <<j; return 0; }

26th Mar 2017, 6:45 AM
Bts...
Bts... - avatar
2 Answers
+ 2
{ int I, j; for (i=1;i <=7;i++) cout <<i; for(j=6;j>0;j--) cout <<j; return 0; }
26th Mar 2017, 2:39 PM
Angga Arya S
Angga Arya S - avatar
+ 1
my solution 👆👆
26th Mar 2017, 6:46 AM
Bts...
Bts... - avatar