Java/Fibo.java
<gh_stars>0import java.util.Scanner;

public class Fibo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a = 1;
        int b = 1;
        for(int i = 1; i <= n; i++ ){
            System.out.print(a);
            int sum = a + b;
            a = b;
            b = sum;           
        }
        sc.close();
    }
}