diff options
Diffstat (limited to 'mat/advent/8/vsota.c')
-rw-r--r-- | mat/advent/8/vsota.c | 11 |
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; +} |