Skip to content

Instantly share code, notes, and snippets.

@KhaledElshamy
Created July 11, 2016 21:32
Show Gist options
  • Select an option

  • Save KhaledElshamy/6bc0b55cf8425159e05a11ef84e6a6db to your computer and use it in GitHub Desktop.

Select an option

Save KhaledElshamy/6bc0b55cf8425159e05a11ef84e6a6db to your computer and use it in GitHub Desktop.
URI ONLINE JUDGE 1177
#include <stdio.h>
int main() {
//URI ONLINE JUDGE 1177
unsigned int a,i,j,k=0;
scanf("%u", &a);
for (;;)
{
for (j = 0;j < a;j++)
{
printf("N[%u] = %u\n", k, j);
k++;
if (k == 1000)
break;
}
if (k ==1000)
break;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment