#include<iostream.h>
#include<conio.h>
void main()
{
int i,j,n;
clrscr();
cout<<"Enter Your Number : ";
cin>>n;
for(i=n;i>=1;i--)
{
for(j=n;j>=i;j--)
{
cout<<i<<" ";
}
cout<<endl;
}
getch();
}
Enter Your Number : 5
You Can Also Download This Program From Here

Comments
Post a Comment