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
English,
3 months ago
Computer Science,
3 months ago
Social Sciences,
3 months ago
English,
6 months ago
English,
10 months ago