How to find the product of entered digit | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

How to find the product of entered digit

Like enter digit is 2367 then it's product should be 2×3×6×7=252

24th Oct 2019, 2:03 PM
sanket chaudhari
3 ответов
+ 4
Just divide the number by 10 and keep the remainder. Remainder will be the first digit. Like this keep on geting the digits and multiply them
24th Oct 2019, 2:12 PM
Arsenic
Arsenic - avatar
0
eval('*'.join(i for i in input()))
24th Oct 2019, 2:45 PM
Trigger
Trigger - avatar
0
Thanks
10th Dec 2019, 8:08 AM
sanket chaudhari