Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6429 siemargl 1
#include 
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
   do
14
   {
15
      printf("%d\n", a);
16
      t = a;
17
      a = t + p;
18
      p = t;
19
   } while (a < 100);
20
 
21
   return 0;
22
}
23
 
24
// vim: set expandtab ts=4 sw=3 sts=3 tw=80 :