littleUpdate
This commit is contained in:
+5
-1
@@ -1,3 +1,4 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
/**
|
||||
* fibonacci
|
||||
@@ -5,7 +6,10 @@
|
||||
public class fibonacci {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Let's try to get back on the horse!");
|
||||
int fib = 7;
|
||||
Scanner sc = new Scanner(System.in);
|
||||
System.out.println("Please enter the number you wanna search: ");
|
||||
int fib = sc.nextInt();
|
||||
sc.close();
|
||||
System.out.println(fibonacciNum(fib));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user