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

Respond to the following discussion prompt. Compare the costs and benefits of two online and mobile checking and savings account options for a young adult who h
PLEASE HELP ME WITH THESE TIMES. ​
Is the number 712 evenly divisible by the number 6?
Which graph most likely represents a rabbit population that found a new, larger habitat, but then eventually experienced an increase in predation?Graph AGraph B
If a plane can travel 480 miles per hour with the wind and 420 miles per hour against the​ wind, find the speed of the wind and the speed of the plane in still
Helpppp meeeeee plizzzzzz
CAN SOMEONE HELP ME PLEASE ASAP!?
Which of these scenarios would provide the best help for improving cardiorespiratory health? (a) Sam hurt his left knee when he was in the army. Although he'd l
Pittsburgh charges a 6% sales tax. Paula goes shopping and her purchases total $139. How much will she pay in taxes?
How to clean every types of pollutlon? PLEASE WITH LONG ANSWER