// FILE: MA61:test2xx.cxx #include #include main (void) { short k = 32767; //5 digit accuracy <= 32,767 = 2^15-1 int i = 1234567890; // same as long long j = 2147483647;//10 digit acc. <=2,147,483,647=2^31-1 float x; //7 dec place accuracy double y; //18 dec place accuracy cout << setiosflags(ios::fixed); cout << setprecision(20); cout << setiosflags(ios::right); x = 22.0/7.0; y = 22.0/7.0; cout << "k=" << setw(30) << k << endl; cout << "i=" << setw(30) << i << endl; cout << "j=" << setw(30) << j << endl; cout << "x=" << setw(30) << x << endl; cout << "y=" << setw(30) << y << endl; cout << "Hello, world!\n"; }