#include <iostream>
// Function to find the maximum of two numbers
int max(int a, int b) {
return (a > b) ? a : b;
}
// Function to find the maximum of three numbers using the max function
int maxOfThree(int a, int b, int c) {
return max(max(a, b), c);
}
int main() {
// Input three integers from the user
int num1, num2, num3;
std::cout << "Enter three integers: ";
std::cin >> num1 >> num2 >> num3;
// Find and display the maximum of the three numbers
int result = maxOfThree(num1, num2, num3);
std::cout << "The maximum of the three numbers is: " << result;
return 0;
}