Skip to content

santoshfaculty1/JavaCourse_Assessment2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Factorial

Write a program called Factorial1to14, to compute the factorial of n, for 1≤n≤14. Your output shall look like: The factorial of 1 is 1 The factorial of 2 is 2 ... The factorial of 10 is 3628800

Hints: Beware of overflow. Use the proper datatype to avoid numeric overflows.
Overflow occurs for Factorial(n+1) if (Integer.MAX_VALUE / Factorial(n)) < (n+1).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors