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