#include <iostream> #include <math.h> using namespace std; int main() { int n = 0; double f = 0.0; while(n<20) { f=(1/sqrt(5))*(pow((1+sqrt(5))/2,n)-pow((1-sqrt(5))/2,n)); cout << f << " "; n++; } return 0; } c) #include <iostream> #include <math.h> using namespace std; int main() { int n = 0; while(n<20) { cout << (1/sqrt(5))*(pow((1+sqrt(5))/2,n)-pow((1-sqrt(5))/2,n)) << " "; n++; } return 0; }