+ 2

Return sum of products of digit

You are given two numbers n1 and n2. You need to find the sum of the products of their corresponding digits. So, for a number n1= 6 and n2 = 34, you'll do (6*4)+(0*3) = 24.

16th Nov 2021, 9:29 AM
Arsalan Khan
Arsalan Khan - avatar
1 Réponse
+ 1
Where did 0 come from (0 * 3)? Also where is your tryout code? I hope you were not looking for someone to do this for you : ) https://www.sololearn.com/post/75089/?ref=app
16th Nov 2021, 9:36 AM
Ipang