Computer Science, asked by mritunjoy4967, 1 year ago

Write a program to generate Fibonacci series upto first 20 numbers.

Answers

Answered by Anonymous
4

Answer:

Explanation:

class t1

{

public void t2()

{

int a =1;

int b=2;

int n=20;

int c;

for ( int i=0;i<=20;i++)

int c= a +b;

System .out. println(c);

a=b;

b=c;

}

}

Similar questions