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

loesung-3-9f.c

Blame
  • Forked from Peter Gerwinski / hp
    48 commits behind the upstream repository.
    loesung-3-9f.c 243 B
    #include <stdio.h>
    
    int main (void)
    {
      long double f0 = 0;
      long double f1 = 1;
      for (int i = 0; i < 100; i++)
        {
          printf ("f[%d] = %.0Lf\n", i, f0);
          long double f2 = f0 + f1;
          f0 = f1;
          f1 = f2;
        }
      return 0;
    }