#include #include #include #include using namespace std; int main () { const double factor {pow(2.0, 1.0/12)}; cout << "Each pipe is " << fixed << setprecision(3) << factor << " times as long as the previous one. \n\n"; double length {100.0}; for (int pipe {0}; pipe <= 12; ++pipe) { cout << setw(2) << pipe <<" " << fixed << setprecision(3) << length << "\n"; length *= factor; } return EXIT_SUCCESS; }