Wednesday, March 22, 2017

URI problem 1177 solution in C | (Array Fill II)

Please visit this link to find the solutions-

Link:https://codespathshala.com/uri-1177/



/

1 comment:

  1. No array :)
    #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;
    }

    ReplyDelete