More Math, but Fun This Time
Test your C programming skills by solving the given puzzle about recursive approximation.
We'll cover the following...
Puzzle code
...Press + to interact
#include <stdio.h>double phi(double p, int precision){while(precision)return( p + 1/phi(p, precision-1) );return(p);}int main(){double gr;gr = phi(1.0, 15);printf("Phi is %f\n", gr);return(0);}
...