1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dlinn [17]
3 years ago
14

Does anybody know the answer to 5.7.5: Factorial of Code HS? I can’t figure it out

Computers and Technology
2 answers:
shutvik [7]3 years ago
4 0

function myFunction(num){

 n = 0;

 total = 1;

 while (n < num){

   total *= (num - n);

   n+=1;

 }

 return total;

}

alert(myFunction(6));

I'm not too proficient in JavaScript but here's what the function would look like. I hope this helps!

spin [16.1K]3 years ago
3 0

Answer:

the answer is

var N = readInt("Enter a starting value for the factorial: ");

var total = 1;

function start(){

 

for(var i = 0; i < N; i++) {

total = total * (N - i);

}

println(N + "! = " + total);

}

Explanation:

You might be interested in
Which web design concept is most closely related to elements that symbolize the real world? A. node B. landmark c.metaphor IN D.
sergij07 [2.7K]

Answer:

landmark

Explanation:

6 0
3 years ago
To annotate a document with a remark for another reviewer to address, select the _____ feature.
Gala2k [10]
<span>To annotate a document with a remark for another reviewer to address, select the Comments feature. 

In both Excel and Word, you can go to the toolbar and select review and you will see "New Comment." Select the word (in Microsoft Word) or the cell (in Microsoft Excel) add click on the "New Comment". </span>
3 0
3 years ago
Hola, alguien me puede ayudar¡¡¡¡¡¡¡¡¡¡¡¡
WARRIOR [948]
Hola<span>, </span>Alguien me<span> podría </span>ayudar<span> a realizar una buena sinopsis de la película "</span><span>Jardín de Amapolas" dirigida por Carlos Melo Guevara, gracias? i hope i helped you</span>
4 0
4 years ago
An operating system change that fixes bugs improves security or enhanced features is called
Vika [28.1K]

An operating system change that fixes bugs improves security or enhanced features is called update.

It is very important to update your operating system because having the latest software version means your computer or device will be not only be more secure but will also perform better and be more reliable.

5 0
3 years ago
Read 2 more answers
If my 98 dodge ram 1500 truck is dropping RPM's when i stop does that mean i need new throttle body sensors or does it mean i ne
geniusboy [140]
You might need a new 02 sensor and i really dont know about the vacuum leak.
6 0
3 years ago
Read 2 more answers
Other questions:
  • When typing in a spreadsheet cell, hitting the Tab key will bring which result?
    6·1 answer
  • We are committed to creating and cultivating a graduate and postdoctoral community that values and respects individuals, regardl
    11·1 answer
  • Which of the following is not a data type in python Float, string, integer, decimal ​
    15·2 answers
  • What is a systems development life cycle?
    5·1 answer
  • When you navigate inside a compressed folder, you click the
    6·1 answer
  • Which of the following represents a transition?
    5·1 answer
  • 3. Comparing the Utopian and dystopian views of Technology according to Street (1992) which one in your view is more applicable
    9·1 answer
  • What is the easiest way to defeat ganon in BOTW?
    11·2 answers
  • Evaluation of your strengths and weaknesses
    13·1 answer
  • Does anyone have any advice for me im a junior in highschool
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!