+ 1

Take 2-digit number from user and multiply that number with the sum of its digits.ex:if your number is 25 multiply it by 2+5=7

i m beginner

30th Mar 2017, 8:45 PM
Hafiz Tayyab Mushtaq
Hafiz Tayyab Mushtaq - avatar
1 Réponse
+ 5
Take the input as a string. Start with the first digit, and multiply it by the second by taking the 0-place and 1-place digits in the string. It do you want to do it mathematically?
30th Mar 2017, 8:49 PM
J.G.
J.G. - avatar