Write a program in C++ that calculates the product or other operations of the digits of the number entered by the user. For example, if user enters 87654, the result will be 8*7*6*5*4= 6720 and if user enter 9/38+4 the result would be 9/3*8+4 = 28
Answers
Answered by
1
Answer:
Explanation:
In this example, you'll learn to print the number entered by a user using C++ ... Output Enter an integer: 23 You entered 23. This program asks the user to enter a number. When the user enters an integer, it is stored in variable number using cin . ... This will allow us to write cout , cin , endl , etc. instead of std::cout , std::cin ...
Similar questions