MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/fnuof3/comments_you_cant_remove/fleiqut/
r/ProgrammerAnimemes • u/bucket3432 • Mar 23 '20
53 comments sorted by
View all comments
Show parent comment
1
No see if he inputs 0, it gets the factorial of 1. Then when the number isn’t zero, it subtracts 1 from it.
1 u/curly123 Mar 24 '20 If you input -1 you get stuck in an infinite loop. 2 u/froggie-style-meme Mar 24 '20 This code is just awful
If you input -1 you get stuck in an infinite loop.
2 u/froggie-style-meme Mar 24 '20 This code is just awful
2
This code is just awful
View all comments
Show parent comment
1
u/froggie-style-meme Mar 24 '20
No see if he inputs 0, it gets the factorial of 1. Then when the number isn’t zero, it subtracts 1 from it.