aboutsummaryrefslogtreecommitdiff
path: root/test/t1.c
blob: 6493decda34ba6d0d84ade901ce653e8d804aef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
int glob = 1;

int fibo(int n) {
	if (n <= 0) return 0;
	int a = 0;
	int b = 1;
	int i = 1;
	while (i < n) {
		int c = a + b;
		a = b;
		b = c;
		i = i + 1;
	}
	return b;
}

void main(int argc, int **argv) {
	int a = 1;
	int b = 2 + a * 3;
	glob = glob + 1;
	fibo(glob);
	// holo_dec(a);
}