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
0
I don't get it.. your code is working fine base on the program.
7th Apr 2020, 8:34 PM
minirkk
minirkk - 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