#include #include #include using namespace std; const size_t BASE_10_SIZE{6}; const size_t BASE_8_SIZE{8}; const size_t BASE_16_SIZE{5}; int main() { short i; i = -20; while (i < 20) { cout << setw(BASE_10_SIZE) << setbase(10) << i << setw(BASE_8_SIZE) << setbase(8) << i << setw(BASE_16_SIZE) << setbase(16) << i << endl; i = i + 1; } cout << endl; cout << "Max and Min " << endl; i = numeric_limits::max(); cout << setw(BASE_10_SIZE) << setbase(10) << i << setw(BASE_8_SIZE) << setbase(8) << i << setw(BASE_16_SIZE) << setbase(16) << i << endl; i = numeric_limits::min(); cout << setw(BASE_10_SIZE) << setbase(10) << i << setw(BASE_8_SIZE) << setbase(8) << i << setw(BASE_16_SIZE) << setbase(16) << i << endl; return 0; }