A special two-digit number is such that when the sum of its digits is added to the
Fantastic news! We've Found the answer you've been seeking!
Question:
A special two-digit number is such that when the sum of its digits is added to the product of its digits, the result is equal to the original two-digit number. Example: Consider the number 59. Sum of digits = 5 + 9 = 14 Product of its digits = 5 x 9 = 45 Sum of the sum of digits and product of digits= 14 + 45 = 59 Implement aC++ program to accept a two-digit number. Add the sum of its digits to the product of its digits. If the value is equal to the number input, output the message “Special 2- digit number” otherwise, output the message “Not a Special 2-digit number”.
Related Book For
Essentials of Marketing Research
ISBN: 978-1305263475
6th edition
Authors: Barry J. Babin, William G. Zikmund
Posted Date: