Created
October 11, 2018 03:45
-
-
Save landjd19/7e90ef3c33f7c54d7f11df0bd2b06f27 to your computer and use it in GitHub Desktop.
Factorial Runner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Write a description of class FactorialRunner here. | |
* | |
* @author Jake Landaiche | |
* @version 10/10/18 | |
*/ | |
import java.util.*; | |
public class FactorialRunner | |
{ | |
public static void main(String[] args){ | |
Scanner sc = new Scanner(System.in); | |
System.out.println("Please input your number"); | |
int input = sc.nextInt(); | |
Factorial fac = new Factorial(); | |
int result = fac.factorial(input); | |
System.out.println(result); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment