summaryrefslogtreecommitdiffstats
path: root/mat/advent/4/prog.c
diff options
context:
space:
mode:
Diffstat (limited to 'mat/advent/4/prog.c')
-rw-r--r--mat/advent/4/prog.c4
1 files changed, 1 insertions, 3 deletions
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);
}