Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int i,j,k,l,n;
- printf("Enter the number: ");
- scanf("%d",&n);
- l=1;
- for(i=1;i<=n;i++)
- {
- for(k=i;k<=n;k++)
- {
- printf(" ");
- }
- for(j=1;j<=i;j++,l++)
- {
- printf(" %d",l);
- }
- printf("\n");
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment