Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Serie de Fibonacci
//Serie de Fibonacci //gcc 4.9.1 #include <stdio.h> int main(void) { int a, i, n, a1 = 1, a2 = 1; printf("Inserte numero: "); scanf("%d", &a); if(a<2) printf("El elemento n-esimo sera: %d \n",a) ; else{ for(n=2; n<=a; n++){ i = a1 + a2; a1 = a2; a2 = i; } printf("El elemento n-esimo sera: %d \n", i); } return 0; }
run
|
edit
|
history
|
help
0
2.1.1 Prime numbers in different threads with thread ID
fgets and basic string manipulation
19BCE0666.C
Project 3 Part 1 v1.6
SAI_1-6.c
14th Dec Project1 v0.4
FILE_Access
Humko
Palindromo
time clock and day count through seconds by ratneshgujarathi