0

Please tell me where is the error in finding the Factorial of a no.

I don't think there is a mistake of variable scope : https://code.sololearn.com/cmCvN9lO6SCL/?ref=app

19th Jul 2018, 12:14 PM
Parth Salat
Parth Salat - avatar
7 odpowiedzi
+ 2
In line 10, you used < instead of >.
19th Jul 2018, 12:17 PM
Satyam
+ 3
It might be useful for you to check up some debugging tutorials online. It is a very important aspect of coding, and this was a simple bug.
19th Jul 2018, 2:24 PM
QailBee 🤴🏼
QailBee 🤴🏼 - avatar
+ 2
No sorry Parth Salat , I self learned how to debug my code. I am not sure how other languages do it but Python for example when using PyCharm they have special debug runs; so if you are using an interface search online for that specific interface how to debug with it. Maybe that can help you start (y)
21st Jul 2018, 8:56 AM
QailBee 🤴🏼
QailBee 🤴🏼 - avatar
+ 1
you're welcome!
19th Jul 2018, 12:47 PM
Satyam
+ 1
i agree with Kelbey Wheeler.
19th Jul 2018, 2:34 PM
Satyam
0
Thanks a lot S. C. 👍
19th Jul 2018, 12:46 PM
Parth Salat
Parth Salat - avatar
0
Thanks Kelbey Wheeler, can you tell me some websites for debugging?
21st Jul 2018, 6:50 AM
Parth Salat
Parth Salat - avatar