00160.c (255B)
1 #include <stdio.h> 2 3 int main() 4 { 5 int a; 6 int p; 7 int t; 8 9 a = 1; 10 p = 0; 11 t = 0; 12 13 while (a < 100) 14 { 15 printf("%d\n", a); 16 t = a; 17 a = t + p; 18 p = t; 19 } 20 21 return 0; 22 } 23 24 // vim: set expandtab ts=4 sw=3 sts=3 tw=80 :