#include #include //for numeric_limits #include using namespace std; int main() { short int si {10000}; //ten thousand short int maxShortInt {numeric_limits::max()}; short int minShortInt {numeric_limits::min()}; cout << " The value of si is " << si << ".\n"; cout << "The maximum short int value is " << maxShortInt << ".\n"; cout << "The minimum short int value is " << minShortInt << ".\n"; cout << "A short int occupies " << sizeof (short int) << " byte(s).\n\n"; int i {1000000000}; //one billion, commas not allowed int maxInt {numeric_limits::max()}; int minInt {numeric_limits::min()}; cout << " The value of i is " << i << ".\n"; cout << "The maximum int value is " << maxInt << ".\n"; cout << "The minimum int value is " << minInt << ".\n"; cout << "An int occupies " << sizeof (int) << " byte(s).\n\n"; long int li {1000000000000000000}; //one quintillion long int maxLongInt {numeric_limits::max()}; long int minLongInt {numeric_limits::min()}; cout << " The value of li is " << li << ".\n"; cout << "The maximum long int value is " << maxLongInt << ".\n"; cout << "The minimum long int value is " << minLongInt << ".\n"; cout << "A long int occupies " << sizeof (long int) << " byte(s).\n"; return EXIT_SUCCESS; }