max c++
Sure! Here is a response without any personal words or sentences at the beginning and end of the reply:
#include <iostream>
int main() {
int num1, num2, max;
std::cout << "Enter two numbers: ";
std::cin >> num1 >> num2;
if (num1 > num2) {
max = num1;
} else {
max = num2;
}
std::cout << "The maximum number is: " << max;
return 0;
}