Skip to content
Snippets Groups Projects
Select Git revision
  • e5a55ae5d895b36506b339f1f24833424616305f
  • master default protected
  • 2018ws
  • 2017ws
  • 2016ws
5 results

loesung-3-2.c

Blame
  • Forked from Peter Gerwinski / hp
    Source project has a limited visibility.
    loesung-3-6a.c 255 B
    #include <stdio.h>
    #include <stdint.h>
    
    int main (void)
    {
      uint128_t f0 = 0;
      uint128_t f1 = 1;
      for (int i = 0; i < 100; i++)
        {
          printf ("f[%d] = %lu\n", i, f0);
          uint128_t f2 = f0 + f1;
          f0 = f1;
          f1 = f2;
        }
      return 0;
    }