#include int main(void) { float x,y,z; int i,n; x=1; y=(sqrt(5)-1)/2; // n in [1,1000] for (i=1;i<=n;i++) { z=x; x=y; y=z-y; } }