Skip to content

sgowda97/factorial-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

factorial-java

Find the factorial of a given number

What is a factorial?

  • Factorial of 'n' is the product of all positive descending integers.
  • Example: 5! = 5 * 4 * 3 * 2 * 1 = 120
  • Can be achieved in two ways:
    • Through the loop
    • Through the recursive method

HOW-TO

  • Make sure JDK is installed
  • Download the program, assuming you have downloaded the recursive method, and you have the directory opened in CLI, type:
    • javac FactorialNumber.java
    • java FactorialNumber
  • Follow the instructions

About

Find the factorial of a given number

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages