0
How i can get this output ?? Using nasted for loop in c++
1 2 1 3 2 1 4 3 2 1
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 ();
}
0
Thank you so much,, your the best