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

How to finsd the set of numbers if the mean, median and mode is given
In a survey of 653 randomly chosen workers from a manufacturing plant 68 said that they prefer to work the night shift. The manufacturing plant employs a total
What is the mode of 3 6 9 7 4 6 7 0 7
Which energy transformation occurs in an exothermic reaction? B. Energy from the chemical bonds of the reactants is released to the surroundings Or C. There
Most of the people who worked on the Constitution were lawyers and business-owners or landowners.
What is dr. King known for? name an accomplishment or cause.
Can you please help me?
Bentley invested $430 in an account paying an interest rate of 2.5% compounded continuously. Assuming no deposits or withdrawals are made, how long would it tak
Helpsssssssssssssss!!!!!!!!!!!!!!!!!!!!
Coworker: "Have you noticed our supervisor's idiosyncrasies?"