#include // The C++ input and output definitions. #include // The C++ input and output manipulator definitions. void main(void) { cout << "pi = " << setprecision(2) << 3.141593 << endl; cout << "10 pi = " << 31.41593 << endl; cout << "100 pi = " << 314.1593 << endl; cout << "1000 pi = " << 3141.593 << endl; cout << "10000 pi = " << 31415.93 << endl; cout << "100000 pi = " << 314159.3 << endl; cout << "1000000 pi = " << 3141593. << endl; cout << "10000000 pi = " << 31415930. << endl; cout << "pi = " << setiosflags(ios::fixed) << 3.141593 << endl; cout << "10 pi = " << 31.41593 << endl; cout << "100 pi = " << 314.1593 << endl; cout << "1000 pi = " << 3141.593 << endl; cout << "10000 pi = " << 31415.93 << endl; cout << "100000 pi = " << 314159.3 << endl; cout << "1000000 pi = " << 3141593. << endl; cout << "10000000 pi = " << 31415930. << endl; }