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