Computer Science, asked by Hem6609, 1 year ago

write a program to print Fibonacci series in bluej​

Answers

Answered by brinllllly
0

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;

Similar questions