Computer Science, asked by GSudheerkumar1085, 1 year ago

Write a program to print Fibonacci series up to 10 terms

Answers

Answered by Nawaz0917
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 jsprashantchouhan
3

Answer:

djrjfjdjdjjfdhfhhfhffuufufufufufuf

Similar questions