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, factorial(n)); return 0; } long factorial(long n) { if(n == 0) return 1; return n * factorial(n - 1); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
selection sort
Command Expressions in Gnu C: What Does Return Return?
WAP in C to delete an element from an array
Spring 2017 Lab 5 v1
Finite State Machine Program Example (ECE 2534)
709 lab 3.1
ele709 3.5 finished
swap_bitwise.c
htabprepa
6 ejercicio trabajo semanal 4
Please log in to post a comment.