URI online judge:1177 solution in C

https://www.urionlinejudge.com.br/judge/en/problems/view/1177
#include<stdio.h>
int main()
{
    int n,i,j,N[1000];

    scanf("%d",&n);
    for(i=0,j=0;i<1000;i++)
    {
        printf("N[%d] = %d\n",i,j);
        j++;
        if(j==n) j=0;
    }
    return 0;
}


Comments