0

factorial formula

how to calculate factorial in c++ ? im using :- #include <iostream> using namespace std; factorial is like when we input n=5, the calculation is 5*4*3*2*1 so the answer is 120

1st Jan 2019, 2:07 PM
Syed Bob
5 Respostas
+ 2
I see, alright thank you very much sir ! :)
1st Jan 2019, 3:10 PM
Syed Bob
+ 2
~ swim ~ Wow, your explanation is very helpful and clear. Thank you so much sir for your time ! 😊
3rd Jan 2019, 4:33 PM
Syed Bob
0
I'm sorry but I don't understand your code, I'm pretty new in coding.
1st Jan 2019, 2:15 PM
Syed Bob
0
Thank you so much both of you. I get it. Thank you again for your time ! :)
1st Jan 2019, 2:56 PM
Syed Bob
0
But one more question, what is the different if I use while and for ?
1st Jan 2019, 2:57 PM
Syed Bob