Question: Question 3 [30 pts]: Write a program that prompts the user to enter two integers. The program will then display a message based on the
Question 3 [30 pts]: Write a program that prompts the user to enter two integers. The program will then display a message based on the below rules: 1- If both integers are even, the program displays their sum 2- Otherwise, the program displays their product Sample Run 1: Enter two integers: 20 40 The sum of 20 and 46 is 60 Sample Run 2 : Enter two integers: 3 40 The product of 3-and 40-is 120 Sample Run 3: Enter two integers: 7.3 The product of 4 and 31s 21
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
