summaryrefslogtreecommitdiffstats
path: root/mat/advent/4/prog.c
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-12-07 17:45:49 +0100
committersijanec <sijanecantonluka@gmail.com>2020-12-07 17:45:49 +0100
commit05cbb645e112d9a480084f9035c745b832a93d0a (patch)
tree4e39f6facd08abce4cee8926cdd01faf23c3df3b /mat/advent/4/prog.c
parentMerge branch 'master' of https://git.šijanec.eu/sijanec/sola-gimb-2 (diff)
downloadsola-gimb-2-05cbb645e112d9a480084f9035c745b832a93d0a.tar
sola-gimb-2-05cbb645e112d9a480084f9035c745b832a93d0a.tar.gz
sola-gimb-2-05cbb645e112d9a480084f9035c745b832a93d0a.tar.bz2
sola-gimb-2-05cbb645e112d9a480084f9035c745b832a93d0a.tar.lz
sola-gimb-2-05cbb645e112d9a480084f9035c745b832a93d0a.tar.xz
sola-gimb-2-05cbb645e112d9a480084f9035c745b832a93d0a.tar.zst
sola-gimb-2-05cbb645e112d9a480084f9035c745b832a93d0a.zip
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);
}