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

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;
}

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