diff options
-rwxr-xr-x | mat/advent/4/a.out | bin | 8432 -> 8432 bytes | |||
-rw-r--r-- | mat/advent/4/prog.c | 4 |
2 files changed, 1 insertions, 3 deletions
diff --git a/mat/advent/4/a.out b/mat/advent/4/a.out Binary files differindex ad1aa04..c1c724c 100755 --- a/mat/advent/4/a.out +++ b/mat/advent/4/a.out diff --git a/mat/advent/4/prog.c b/mat/advent/4/prog.c index 87dfa5e..a50524f 100644 --- a/mat/advent/4/prog.c +++ b/mat/advent/4/prog.c @@ -9,10 +9,8 @@ int main (int argc, char ** argv) { unsigned long int x = 1; unsigned long int y = 1; unsigned long int s = 0; - for (x = 1; x <= n; x++) { - fprintf(stderr, "debug: x == %lu\n", x); + for (x = 1; x <= n; x++) for (y = 1; y <= n; y++) s = s + x * y; - } fprintf(stdout, "seštevek možnih pravokotnikov v mreži %lux%lu je %lu\n", n, n, s); } |