boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

00161.c (259B)


      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    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 :