Popular Posts

19.Write a program and show 12345 1234 123 12 1.

19.Write a program and show
12345
1234
123
12
1.


#include
#include
int main()
{
clrscr();
int i,j;
for(i=5;i>=1;i--)
{
for(j=1;j<=i;j++)
{
cout< }
cout<<"\n";
}
getch();
return 0;
}


Output:

12345
1234
123
12
1

No comments: