InterviewSolution
Saved Bookmarks
| 1. |
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 tow digit number |
|
Answer» st the moduleint a,b,C,sum, product;input the VALUE of a and bthensum =a+b product=a*b if(sum== product)OUTPUT special two digit numberelseoutput not special two digit NUMBER |
|