summaryrefslogtreecommitdiffstats
path: root/mat/advent/8/vsota.c
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-12-19 00:13:36 +0100
committersijanec <sijanecantonluka@gmail.com>2020-12-19 00:13:36 +0100
commitd8fc5266aefe99ccd5e1f1c0df6a190e56efe828 (patch)
tree01193c2a68fe3f9e8f36d7514da61445e62e5ff7 /mat/advent/8/vsota.c
parentsprasevanje_nem_1_wetter_heute (diff)
downloadsola-gimb-2-d8fc5266aefe99ccd5e1f1c0df6a190e56efe828.tar
sola-gimb-2-d8fc5266aefe99ccd5e1f1c0df6a190e56efe828.tar.gz
sola-gimb-2-d8fc5266aefe99ccd5e1f1c0df6a190e56efe828.tar.bz2
sola-gimb-2-d8fc5266aefe99ccd5e1f1c0df6a190e56efe828.tar.lz
sola-gimb-2-d8fc5266aefe99ccd5e1f1c0df6a190e56efe828.tar.xz
sola-gimb-2-d8fc5266aefe99ccd5e1f1c0df6a190e56efe828.tar.zst
sola-gimb-2-d8fc5266aefe99ccd5e1f1c0df6a190e56efe828.zip
Diffstat (limited to 'mat/advent/8/vsota.c')
-rw-r--r--mat/advent/8/vsota.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mat/advent/8/vsota.c b/mat/advent/8/vsota.c
new file mode 100644
index 0000000..50d4ef6
--- /dev/null
+++ b/mat/advent/8/vsota.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <stdlib.h>
+int main (int argc, char ** argv) {
+ unsigned long long int a = 0;
+ unsigned long long int i = 0;
+ for (i = 1000; i <= 9999; i++) {
+ a += i;
+ }
+ fprintf(stdout, "rezultat vsote je: %llu\n", a);
+ return 0;
+}