From fc54230c7da9e7dab5a03e808aa7867f80a1d195 Mon Sep 17 00:00:00 2001 From: Divyangana Ganguly <72219546+Divyangana-12@users.noreply.github.com> Date: Thu, 8 Oct 2020 20:59:24 +0530 Subject: [PATCH] Create Fibonacci series --- Fibonacci series | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Fibonacci series diff --git a/Fibonacci series b/Fibonacci series new file mode 100644 index 0000000..e77e185 --- /dev/null +++ b/Fibonacci series @@ -0,0 +1,18 @@ +#include + +int main(void) +{ + int n, i,a,b,c; + printf("\n enter the number of terms"); + scanf("%d", &n); + a=0, b=1; + printf("\n the fibonacci series: "); + printf("\t %d \t %d", a,b); + for(i=2; i