aboutsummaryrefslogtreecommitdiffstats
path: root/fibbonacci.c
blob: 4ebad5cefe7b7ef0d0e9a3af47ec1c648a5be207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

int main(/*int argc, char **argv*/) {
	int a = 0, b = 1, c = 0;

	do {
		printf("%d, ", a);
		a = b + c;
		c = b;
		b = a;
	} while (a < 100);
	return 0;
}