+ 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

1 Answer

+ 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?