- 2

Write a program to find factorial of any given number

tell me as soon as possible

28th Sep 2018, 1:36 PM
The Asylum Studio
The Asylum Studio - avatar
8 Réponses
+ 4
Wow! you're welcome : )
28th Sep 2018, 2:13 PM
Ipang
+ 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.
28th Sep 2018, 2:00 PM
Ipang
+ 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 : )
28th Sep 2018, 2:08 PM
Ipang
+ 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.
28th Sep 2018, 1:42 PM
Ipang
+ 1
use a recursive function with a base case.
28th Sep 2018, 3:57 PM
Bebida Roja
Bebida Roja - avatar
- 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
28th Sep 2018, 2:03 PM
The Asylum Studio
The Asylum Studio - avatar
- 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.........
28th Sep 2018, 2:11 PM
The Asylum Studio
The Asylum Studio - avatar
- 4
plzz tell me code to find factorial of number..........do not give me link to find
28th Sep 2018, 1:44 PM
The Asylum Studio
The Asylum Studio - avatar