Skip to content
Open

Sec #205

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion C/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
*
!.gitignore
17 changes: 17 additions & 0 deletions C/Fibonacci.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include<stdio.h>
int main()
{
int a=0,b=1,c=0,i=1,n;
printf("Enter the number of terms you want to see in fibonacci \n");
scanf("%d",&n);
printf("\n%d\n%d",a,b);
while(i<=(n-2))
{
c=a+b;
a=b;
b=c;
printf("\n%d",c);
i++;
}
return 0;
}
Binary file added C/ootpatang.c
Binary file not shown.