ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1014. Product of Digits

Help me, WA#1
Posted by Tai Le 21 Jul 2013 10:42
I don't know what my code's problem is. I have tested all input and got correct output, however I got WA#1 when summitting. Please help me!!

Edited by moderator 23.08.2020 01:19
Re: Help me, WA#1
Posted by Aman 15 Sep 2016 05:25
Get least significant digit of number (number%10) and multiply it to the product variable.
Remove least significant digit form number (number = number/10).
Repeat above two steps, till number is not equal to zero.
http://www.techcrashcourse.com/2015/11/c-program-to-find-product-of-digits-of-number.html
http://www.techcrashcourse.com/2014/10/c-program-add-digits-number.html
http://www.techcrashcourse.com/2015/08/c-program-count-number-of-digits-in-integer.html