Write a program to generate Fibonacci series upto first 20 numbers.
Answers
Answered by
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
Math,
7 months ago
English,
7 months ago
Business Studies,
1 year ago
Business Studies,
1 year ago
Math,
1 year ago