Factorial!
Practice
3.9 (2386 votes)
Easy
Problem
73% Success 308823 Attempts 10 Points 1s Time Limit 256MB Memory 1024 KB Max Code
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 number 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.
Constraints
\( 1 \le N \le 10\)
Sample Input
2
Sample Output
2
Code Editor
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Submissions
Please login to view your submissions
Similar Problems
Points:10
1586 votes
Tags:
Easy
Points:10
456 votes
Tags:
Basic ProgrammingEasyInput/Output
Points:10
2540 votes
Tags:
Easy
Editorial
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor