Factorial_and_Fibonacci_Programs
Factorial_and_Fibonacci_Programs
Factorial_and_Fibonacci_Programs
#include <stdio.h>
if (n == 0 || n == 1)
else
int main() {
int num;
scanf("%d", &num);
if (num < 0) {
} else {
result = factorial(num);
return 0;
#include <stdio.h>
int fibonacci(int n) {
if (n == 0)
else if (n == 1)
else
int main() {
int terms, i;
scanf("%d", &terms);
printf("Fibonacci series:\n");
for (i = 0; i < terms; i++) {
printf("\n");
return 0;