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

You are going to create an application that will run 5 different programs. this program will be driven by a menu screen. the user will be able to choose which p
Lacie kicks a football from ground level at a velocity of 13.9 m/s and at an angle of 25.0° to the ground. How far will the football travel before it lands? Rou
The length of a football field is 120 yd. The width of the football field is 50 yd. Which is the correct unit of measurement to use when figuring out how muc
The lock is numbered from 0 to 49. Each combination uses three numbers in a right, left, right pattern. Find the total number of possible combinations for the l
which is an equation of line with slopr 4 and y intercept of -3
Why have irrigations become so important in Mexico?
You order from a catalog the following office supplies: 10 boxes of paper, each box is 6 pounds and 36 boxes of pens, each box weighs 12 ounces. Shipping charge
73 and one third in decimal
Rob, Dave, and Kelly understand the financial risks involved in starting their own brewery; that's why they've established their business as a A. close cor
Very important! It's due tomorrow. Please, help.