restructure and add ipi texs

This commit is contained in:
2019-11-06 18:24:04 +01:00
parent e21da561fc
commit 8fd8d2a485
155 changed files with 129 additions and 0 deletions
@@ -0,0 +1,19 @@
#include "fcpp.hh"
int fibIter (int letzte, int vorletzte,
int zaehler)
{
return cond( zaehler==0,
vorletzte,
fibIter(vorletzte+letzte,letzte,zaehler-1));
}
int fib (int n)
{
return fibIter(1,0,n);
}
int main (int argc, char** argv)
{
return print(fib(readarg_int(argc,argv,1)));
}