ohloljo ohloljo
  • 24-03-2021
  • Computers and Technology
contestada

Program C++ I need help!

Program C I need help class=

Respuesta :

MeOrYes
MeOrYes MeOrYes
  • 24-03-2021

Answer:#include <iostream>

using namespace std;

int main()

{

   int factorial = 1;

   for (int i = 5; i > 0; i--) {

       factorial = factorial * i;

   }

   cout<<factorial;

   return 0;

}

Explanation:

Answer Link

Otras preguntas

what were 4 causes of spanish-american war
why does chemical weathering occur more quickly in a hot climate
traditional economies do not use _______ as a medium for trade
Mark each of the following statements if it expresses a value from the story of Odysseus and the Cyclops. A. The Cyclops thought the Cyclopes were more powerf
If AB ← → is parallel to CD ← → , which statment must be true?
which of the following is a physical change? -Burning -Rusting -Freezing -Oxidation
what is the solution of 25 > -3(4n-3)
Which sentence does not have an error in subject and verb agreement? A. The sun, warm and sunny, were shining on the lake. B. A slim chance at success was my
A factory packages 4250 boxes of cereal. The number of oat cereal boxes is 715 more than the number of wheat cereal boxes. The number of fruit cereal boxes is 5
how do you know if an object is moving?