int max c++
#include <iostream>
int main() {
int num1, num2, max;
// Input the first number
std::cout << "Enter the first number: ";
std::cin >> num1;
// Input the second number
std::cout << "Enter the second number: ";
std::cin >> num2;
// Compare the two numbers and find the maximum
if (num1 > num2) {
max = num1;
} else {
max = num2;
}
// Display the maximum number
std::cout << "The maximum of " << num1 << " and " << num2 << " is: " << max << std::endl;
return 0;
}