/* Andras Konya 9/18/01 Chapter 3 Review 11 --- Width */ #include #include int main () { double PI = 3.1415926; cout.setf(ios::fixed); cout.precision(1); cout.width(20); cout << PI << endl; cout.setf(ios::fixed); cout.precision(2); cout.width(20); cout << PI << endl; cout.setf(ios::fixed); cout.precision(3); cout.width(20); cout << PI << endl; cout.setf(ios::fixed); cout.precision(4); cout.width(20); cout << PI << endl; cout.setf(ios::fixed); cout.precision(5); cout.width(20); cout << PI << endl; cout.setf(ios::fixed); cout.precision(6); cout.width(20); cout << PI << endl; char dummy; cin >> dummy; return (0); }