Write a program to print Fibonacci series up to 10 terms
Answers
Answered by
20
public class Fibonacci
{
Public static void main(String args[])
{
int a,b,c,n;a=0;b=1;c=0;n=3;
System.out.println( "The Fibonacci series is ");
System.out.println(a);
System.out.println(b);
do
{
c=a+b;
System.out.println(c);
a=b;
b=c;
n=n+1;
}
while(n<=10);
}
}
I Hope it correct
Answered by
3
Answer:
djrjfjdjdjjfdhfhhfhffuufufufufufuf
Similar questions
Science,
6 months ago
Computer Science,
6 months ago
Chemistry,
6 months ago
Business Studies,
1 year ago