Ask
your own question, for FREE!
Computer Science
5 Online
how to write a factorial in C++
Still Need Help?
Join the QuestionCove community and study together with friends!
factorial !! explain more plz !!!
3 factorial = 3! = (3*2*1)
so say i want \[\frac{ x^3 }{ 3! }\]
is there an operator for that
or would i just type it out as (3*2*1)
Still Need Help?
Join the QuestionCove community and study together with friends!
I got it , I'll explain the algorithm : we can write a loop like this : for i is from x to 1 then : x! = x * (x-1)
ok
how would i write this
most efficiently
for example .. to calc 5! : for i= 1 to 5 do x!=x(x-1) is it clear ?
Still Need Help?
Join the QuestionCove community and study together with friends!
is that all you would type
what does i mean
I'm sorry I'll not write the code to you , I've told you the idea and U've to try ... good luck
ok thanks
@iop360 Try writing the steps out by hand, then look at the process you used and replicate it in your code.
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
playtsec:
how do I sleep without getting a sore throat? I always wake up with a sore throat but it goes away later in the day.
75:
how do you react when you deal with someone who plays the victim in every single situation, and do you find this behavior childish or annoying.
JohnnyLFowler0812:
Do you guys ever think that the homeless are going to be healthy and freed from h
JohnnyLFowler0812:
Do you guys ever think that Hikaru Nikanura will ever be take Magnus Calrsen's 1st place title in the wolrdin the United States amd Norway? Right now Hikaru
DoltonCarlee:
what are y'all's options on S A T essays because honestly their not that bad
thereneelg:
Can someone give me a summary of article 231, The war guilt clause?? I need to explain what it is, but I can't find any shortened version of what it is and
luisaam2:
What should you do when the person you want to talk to the most is the one making
2 hours ago
8 Replies
2 Medals
3 hours ago
2 Replies
0 Medals
1 hour ago
7 Replies
1 Medal
5 hours ago
2 Replies
0 Medals
5 hours ago
7 Replies
2 Medals
3 days ago
7 Replies
1 Medal
2 days ago
16 Replies
1 Medal