littleUpdate
This commit is contained in:
parent
7c99eef799
commit
f443bd90b3
@ -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));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user