0

How i can get this output ?? Using nasted for loop in c++

1 2 1 3 2 1 4 3 2 1

18th Mar 2019, 2:42 PM
Med32
Med32 - avatar
2 Respostas
+ 1
I have used turboc++ so I had included clrscr() and getch() #include<iostream.h> #include<conio.h> void main() { int i,j; clrscr (); for(i=1;i<5;i++) { for(j=0;j<i;j++) cout<<i-j; cout<<endl; } getch (); }
18th Mar 2019, 3:40 PM
Vsuniltagore
Vsuniltagore - avatar
0
Thank you so much,, your the best
18th Mar 2019, 4:24 PM
Med32
Med32 - avatar