Skip to content

Instantly share code, notes, and snippets.

@landjd19
Created October 11, 2018 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save landjd19/7e90ef3c33f7c54d7f11df0bd2b06f27 to your computer and use it in GitHub Desktop.
Save landjd19/7e90ef3c33f7c54d7f11df0bd2b06f27 to your computer and use it in GitHub Desktop.
Factorial Runner
/**
* 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