diff --git a/C/Fibonaaci.c b/C/Fibonaaci.c new file mode 100644 index 0000000..f2d0a9b --- /dev/null +++ b/C/Fibonaaci.c @@ -0,0 +1,13 @@ +#include +void main(){ + int n,a=0,b=1,c,i; + printf("Enter a number"); + scanf("%d",&n); + for(i=1;i<=n;i++) + { + c=a+b; + printf("%d,",a); + a=b; + b=c; + } +}