Question: What would be the c++ code for this question? 15. Write a main function that reads an integer N via the keyboard and performs the
15. Write a main function that reads an integer N via the keyboard and performs the following Prints the sum of the digits of N. For example if N is 5789 the sum of its digits is 29 Prints the product of the digits of N. For example if w is 256 the product of its digits is 60 Determines whether N is mystic. N is mystic if the suntof the digits is equal to the product of its digits 16 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
