repl.it
Java

No description

fork
loading
Files
  • Main.java
  • jdt.ls-java-project
Main.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
import java.util.Scanner;

import sun.tools.jconsole.Plotter.Unit;
 class Main {
   public static void main(String[] args) {
     
     Scanner input = new Scanner(System.in);
    
     int A = 0;
     int B = 1;
     int C = 0;

     System.out.println("Enter a number");
     int Number = Integer.parseInt(input.nextLine());

     for(int i = 0; i < 10; i++)
 
     
     
     C = (A + B);
     System.out.println(C);
    
    
      A = B;
      B = C;
     
  }
}