Posts by José Eduardo Pinto Afonso • 1 point
1 post
-
0
votes2
answers401
viewsA: Factorial function does not return
I think it’s easier this way: he checks the condition, if it’s true do what’s left of ':'. If not, then do what’s right of ':'. //fatorial int fatorial(int num){ return (num>0) ?…