chanelharris7282 chanelharris7282
  • 08-10-2021
  • Computers and Technology
contestada

5.Write a program that calculates the factorial of a given number (for example, factorial of 5 = 120).

Respuesta :

Аноним Аноним
  • 08-10-2021

Answer:

Using c++ syntax

int givenNumber= 5; //can set to something else

int answer = 1;

for (int i = 1; i <= givenNumber; i++){

   answer *= i;

}

Answer Link

Otras preguntas

If the two oligonucleotides are allowed to anneal and the DNA polymerase and all substrates (4 dNTPs, etc.) are added to the mix, what will the first nucleotide
2×2 dvkjsdnvkjdbvjdbvj
Which of these is one of the two current U.S. Senators for the state of Arizona?
Graph y= -4/5x -7 Algebra
Why are amendments made/needed for the Constitution?
I need help on this question and I don't really know where to start can somebody help me? ​
-17 + 20 + (-3) help
I just need the correct answers
Jacksonian Democracy is best described as
An equinox occurs twice throughout the course of a year, when Earth’s axis points neither toward nor away from the Sun. How does an equinox affect the lengths o