- 2
Write a program to find factorial of any given number
tell me as soon as possible
8 Answers
+ 4
Wow! you're welcome : )
+ 4
Factorial of n is calculated by multiplication of all the numbers from n to 1. For example factorial of 5:
5x4x3x2x1 = 120
There now, I tell you the formula, the code is yours to implement.
+ 4
If only you would accept my first suggestion to search the Code Playground you should now have an idea how to write the code looking at how others did it. Sorry, but I'm not writing a code for you, you need to learn how to do it on your own, so you learn : )
+ 3
Visit https://www.sololearn.com/Codes/ for code examples to learn from, use the search facility and language filter to narrow the results as necessary.
+ 1
use a recursive function with a base case.
- 3
actually i know what is factorial........but dont know how to code to find factorial of a given no........... i am in a hurry beacuse tomorrow is my exam......so please help me
- 3
if you should have said it in 1st message...........then i wouldn't had wasted my time requesting a beginner like you to tell me the code of a program..........if u dont know....... then dont make excuses.........
- 4
plzz tell me code to find factorial of number..........do not give me link to find