Factorial!
Practice
3.9 (2385 votes)
Easy
Problem
73% Success 308305 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\)
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
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:10
1864 votes
Tags:
Ad-HocApprovedBasic ProgrammingEasyImplementationOpen
Points:10
456 votes
Tags:
Basic ProgrammingEasyInput/Output
3.Zoos
Points:10
1159 votes
Tags:
Basic ProgrammingInput/Output
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
Results
Custom Input
Run your code to see the output