[Link] a program in JAVA to display the Fibonacci Series.
import [Link].*;
public class fibonacci
public static void main(String args [])throws IOException
InputStreamReader read=new InputStreamReader([Link]);
BufferedReader in=new BufferedReader(read);
[Link]("THIS PROGRAM IS TO GENERATE 10 VALUES OF FIBONACCI SERIES.");
[Link]("Enter the values of a");
int a=[Link]([Link]());
[Link]("Enter the values of b");
int b=[Link]([Link]());
int c,n;
c=0;
n=0;
[Link]("The fibonnaci series is");
[Link]("a");
[Link]("b");
do
c=a+b;
[Link](c);
a=b;
b=c;
n=n+1;
while(n<8);
[Link]("THANK YOU");
OUTPUT
THIS PROGRAM IS TO GENERATE 10 VALUES OF FIBONACCI SERIES.
Enter the values of a
23
Enter the values of b
32
The fibonnaci series is
55
87
142
229
371
600
971
1571
THANK YOU