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