0

This code is kind of incomplete

It is necessary define return 1 for input 0, and error message if the input is negative. I did it in https://onlinegdb.com/SyP_Mw9PI If you want to learn how to do it.

7th Apr 2020, 8:30 PM
Luiz Peres
Luiz Peres - avatar
3 Answers
+ 2
Luiz Peres this would fit better in your activity feed. Please use this forum just for questions.
7th Apr 2020, 8:46 PM
Petros the Parakeet
Petros the Parakeet - avatar
0
I don't get it.. your code is working fine base on the program.
7th Apr 2020, 8:34 PM
Rohit
Rohit - avatar
0
I'm just saying that, this code can get some errors depending of the input that you choose. For example, try to put 0 as input. It will not work, but 0! = 1.
7th Apr 2020, 9:43 PM
Luiz Peres
Luiz Peres - avatar