#5 C++ Pattern

#include<iostream.h>
#include<conio.h>

void main()
{
int i,j,n;
clrscr();
cout<<"Enter Your Number : ";
cin>>n;
for(i=1;i<=n;i++)
{
for(j=n;j>=1;j--)
{
cout<<j<<" ";
}
cout<<endl;
}
getch();
}

Output ::

Enter Your Number : 5

You Can Download This Program From Here


Comments

Popular Posts