Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fibonacci1
#include <stdio.h> // fibonacci sequence - מציאת איבר של סידרת פיבונאצי בשיטת הריקורסיה 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
HW22
Lab6 v0.5 Sin,cos,tan,cot
cstructCricPoint
B_141107_Factorial
bitwise operations
C Pointers Experiment (So bad don't use)
Card shuffling and dealing program using structures
Taco practice
vetor mult
AVANCE 1 TAREA M4 - PERLAS