summaryrefslogtreecommitdiffstats
path: root/mat/advent/8/vsota.c
blob: 50d4ef61e0a97ccfe1765eeae8287875ad06e7e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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;
}