54
543
5432
54321
Code ::
#include <stdio.h>
int main ()
{
int i,j,n;
printf("N= ");
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=n;j>=i;j--)
{
printf("%d",j);
}
printf("\n");
}
return 0;
}
No comments:
Post a Comment