#include
#include
void main()
{
int i,n,j;
clrscr();
printf("\n Please Give The Value of Number of *: ");
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=1;j<=i;j++)
printf("%d ",j);
printf("\n");
}
getch();
}
****************************** OUTPUT *********************************
Please Give The Value of N: 7
1 2 3 4 5 6 7
1 2 3 4 5 6
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
***********************************************************************
No comments:
Post a Comment