summaryrefslogtreecommitdiffstats
path: root/mat/advent/6/n1.c
blob: 4f4a5a2310bd158f07ea9645022297d1ad0081c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char ** argv) {
	unsigned int s = 1; /* seštevek */
	unsigned int i = 0; /* indeks */
	while (1) {
		i++;
		s = s*3;
		if (s > 2020)
			break;
	}
	fprintf(stdout, "H_%u ima ploščino, enako %u-kratniku ploščine H_0.\n", i, s);
	return 0;
}