Computer Science, asked by Vaibhavibisht192, 1 month ago

variable description for



import java.util.Scanner;

public class Fibonacci

{

public static void main(String[] args)

{

int n, a = 0, b = 0, c = 1;

Scanner s = new Scanner(System.in);

System.out.print("Enter value of n:");

n = s.nextInt();

System.out.print("Fibonacci Series:");

for(int i = 1; i <= n; i++)

{

a = b;

b = c;

c = a + b;

System.out.print(a+" ");

}

}

Answers

Answered by ssgandhi1825
0

Answer:

spam me with a friend of mine and I don't know what to do

Similar questions