The program first declares three variables: num1, num2, and num3. It then prompts the user to enter the three numbers using the printf() and scanf() functions. An if-else statement is…
The program first declares two variables: num1 and num2. It then prompts the user to enter the two numbers using the printf() and scanf() functions. An if statement is used…