JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Created by Changed /Gaurav Agrawal ...link in comment */
import java.util.Scanner;
public class GauravProgram
{
//enter number of terms u want in that series after first two terms
//original work by Gaurav Agrawal
//run this code to reveal what is fibonacci series and see an example of it
public static void main(String[] args) {
int y = 1;
int z = 1;
int x=0;
int k=0;
Scanner sc= new Scanner(System.in);
try
{
x =sc.nextInt()-2;
}
catch(Exception e)
{
errorHandler();
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run