Write a menu driven Java program to find the Fibonacci series
Answers
Answered by
2
Answer:
Java Program to Generate Fibonacci Numbers
public class Fibonacci.
int n, a = 0, b = 0, c = 1;
Scanner s = new Scanner(System.
System. out. print("Enter value of n:");
n = s. nextInt();
System. out. print("Fibonacci Series:");
for(int i = 1; i <= n; i++)
a = b;
Explanation:
HOPE IT IS HELPFUL AND PLZ PLZ MARK IT AS BRAINLIST
Similar questions