Eat - Code - Sleep - Repeat
No array :)#includeint main(){ int i,n,j=0; scanf("%d",&n); for(i=0;i<1000;i++) { printf("N[%d] = %d\n",i,j); j++; if(j==n) j=0; } return 0;}
No array :)
ReplyDelete#include
int main()
{
int i,n,j=0;
scanf("%d",&n);
for(i=0;i<1000;i++)
{
printf("N[%d] = %d\n",i,j);
j++;
if(j==n)
j=0;
}
return 0;
}