Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fibonacci2
#include <stdio.h> int fibo(int n1, int n2, int n); int main() { int n; printf("Enter positive integers: \n"); scanf("%d ", &n); printf("The %d's item of fibonacci sequence is %d.", n, fibo(1, 1, n)); return 0; } int fibo(int n1, int n2, int n) { if (n > 0) return fibo(n2, n1+n2, --n); else return n1; }
run
|
edit
|
history
|
help
0
cstructCensus
Binary to Integer (C)
Undefined behavior
TAREA M4 - LOTERIA
dcl
funcion dar vuelta numero
Leap year check
Programação em C, testes
C141106_TablaMultiplicar
Is const really const?