@@ -0,0 +1,708 @@
+// program to print the fibonacci series%0Aimport java.util.Scanner;%0A%0Apublic class Fibonacci %7B%0A%09// computes and displays the value at nth position using dynamic programming%0A%09static void printSeries(int n) %7B%0A%09%09long first = 0,second = 1,third = 0;%0A%09%09%0A%09%09for (int i = 2 ; i %3C n ; i++) %7B%0A%09%09%09third = first + second;%0A%09%09%09first = second;%0A%09%09%09second = third;%0A%09%09%7D%09%09%0A%09%09System.out.print(%22The number at position %22 +n+%22 of the fibonacci series is: %22  +third);%0A%09%7D%0A%09%0A%09public static void main (String%5B%5D a) %7B%0A%09%09Scanner in = new Scanner(System.in);%0A%09%09System.out.print(%22Enter the position of the element to displayed in the fibonacci series: %22);%0A%09%09int n = in.nextInt();%0A%09%09System.out.println();%0A%09%09printSeries(n);%0A%09%09in.close();%0A%09%7D%0A%7D%0A%0A

Create Fibonacci.java