Question: Q1: Write a C++ program that asks the user to enter three-digit number. The program should calculate and print the product of the 3 digits

Q1: Write a C++ program that asks the user to enter three-digit number. The program should calculate and print the product of the 3 digits and says if the product is even or odd. Please check the sample output for your program (user input are in bold)

Please enter three-digit number: 101

The product of: 1 * 0 * 1 = 0

The product of the digit of number 101 is even

Please enter three-digit number: 131

The product of: 1 * 3 * 1 = 3

The product of the digit of number 131 is odd

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!