Question: (C++) Write a program to input an positive integer from user and calculate the product of its digits. Your code should work for all integers

(C++) Write a program to input an positive integer from user and calculate the product of its digits. Your code should work for all integers ranging from 100 to 999. The input and output should be exactly:

Input an integer (100 - 999):

[USER ENTERS AN INTEGER FROM 100 TO 999]

The product of digits is X.

One example is given as follows:

Input an integer (100 - 999):

[USER ENTERS 132]

The product of digits is 6.

Instructions: You may not use stdafx.h. Use header comments to illustrate the purpose of your code, your name, date, etc

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!