Search Bar

Factorial in Java Hackerearth Problem Solution

 

Factorial in Java HackerEarth Basic Problem Solution.


Factorial Program in Java: Factorial of n is the product of all positive descending integers. Factorial of n is denoted by n!. For example 4! = 4*3*2*1 = 24

Factorial in Java Hackerearth Problem Solution

Problem:

You have been given a positive integer N. You need to find and print the Factorial of this number. The Factorial of a positive integer N refers to the product of all numbers in the range from 1 to N. You can read more about the factorial of a number here.


Input Format:

The first and only line of the input contains a single integer N denoting the number whose factorial you need to find.

Output Format

Output a single line denoting the factorial of the number N.

Factorial in Java Hackerearth Problem Solution


Answer: 



Post a Comment

0 Comments