A community for students.
Here's the question you clicked on:
 0 viewing
iop360
 3 years ago
how to write a factorial in C++
iop360
 3 years ago
how to write a factorial in C++

This Question is Open

ammar93
 3 years ago
Best ResponseYou've already chosen the best response.0factorial !! explain more plz !!!

iop360
 3 years ago
Best ResponseYou've already chosen the best response.03 factorial = 3! = (3*2*1)

iop360
 3 years ago
Best ResponseYou've already chosen the best response.0so say i want \[\frac{ x^3 }{ 3! }\]

iop360
 3 years ago
Best ResponseYou've already chosen the best response.0is there an operator for that

iop360
 3 years ago
Best ResponseYou've already chosen the best response.0or would i just type it out as (3*2*1)

ammar93
 3 years ago
Best ResponseYou've already chosen the best response.0I got it , I'll explain the algorithm : we can write a loop like this : for i is from x to 1 then : x! = x * (x1)

ammar93
 3 years ago
Best ResponseYou've already chosen the best response.0for example .. to calc 5! : for i= 1 to 5 do x!=x(x1) is it clear ?

iop360
 3 years ago
Best ResponseYou've already chosen the best response.0is that all you would type

ammar93
 3 years ago
Best ResponseYou've already chosen the best response.0I'm sorry I'll not write the code to you , I've told you the idea and U've to try ... good luck

eSpeX
 3 years ago
Best ResponseYou've already chosen the best response.0@iop360 Try writing the steps out by hand, then look at the process you used and replicate it in your code.
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.