climits
#include <climits>
int main() {
// Print the minimum and maximum values of different integer types
std::cout << "int: " << INT_MIN << " to " << INT_MAX << std::endl;
std::cout << "short: " << SHRT_MIN << " to " << SHRT_MAX << std::endl;
std::cout << "long: " << LONG_MIN << " to " << LONG_MAX << std::endl;
std::cout << "long long: " << LLONG_MIN << " to " << LLONG_MAX << std::endl;
return 0;
}#include <climits>
int main() {
// Print the minimum and maximum values of float and double
std::cout << "float: " << FLT_MIN << " to " << FLT_MAX << std::endl;
std::cout << "double: " << DBL_MIN << " to " << DBL_MAX << std::endl;
return 0;
}