Factorial!
Practice
3.9 (2384 votes)
Easy
Problem
73% Success 307315 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\)
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
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:10
2431 votes
Tags:
Easy
Points:10
1864 votes
Tags:
Ad-HocApprovedBasic ProgrammingEasyImplementationOpen
Points:10
2080 votes
Tags:
Easy
Editorial
Login to unlock the editorial