refer the above attachment please answer correctly and wrong answer will be reported!
Attachments:
Answers
Answered by
8
Answer:
Refer above attachments.
HOPE IT HELPS YOU
Or
Example:
Consider the number 59.
Sum of digits = 5 + 9 = 14
Product of its digits = 5 x 9 = 45
Sum of sum of digits and product of digits = 14 + 45 = 59
Write a 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”.
To check if a number is a special number or not, we will follow the below steps:
°Extract the digits of the number.
°Compute the sum of the digits.
°Compute the product of the digits.
°Add the sum and product of digits.
°Check if the result from step 4 above is °equal to the original number.
Attachments:
Answered by
3
Explanation:
- hello princess unn ie
- hru?
- are you free??
- i wanna talk to you
- we didn't talked from so many days
Similar questions