Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fibonacci
#include<stdio.h> int main() { int n; int first = 0; int second = 1; int next; int x; scanf("%d",&n); printf("terms of Fibonacci series are : %d\n",n); for ( x = 0 ; x < n ; x++) { if ( x <= 1 ) next = x; else { next = first + second; first = second; second = next; } printf("%d\n",next); } return 0; }
run
|
edit
|
history
|
help
0
test
signaling NaN test
Lab 7 blackjack v0.6
Address.c
B_141125_Repetidos
Run code before/after main in C (GCC)
Ppp
Ultimo avance de pregunta 1 guía4
18BCE2182 ASSESS_1 Q1-5
Project 3 Part 1 v1.6