Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
150109_RecursividadFactorial
//Title of this code //gcc 4.8.2 #include <stdio.h> long factorial(long n); int main(void) { long n = 5; printf("El factorial de %ld es %ld\n\n\n", n, factorial(n)); return 0; } long factorial(long n) { if(n == 0) return 1; return n * factorial(n - 1); // return n ? n * factorial(n - 1) : 1; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
PREGUNTA 10 CADENAS
print_odd_pointer.c
CpointfunProd
18BCE2182 ASSESS_3 Q1
main.c
Ultimo avance de pregunta 1 guía4
치카냥3
18BCE2182 ASSESS_1 Q2-2
Pattern 13
Lab 11 v.05
Please log in to post a comment.