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