Program C++ I need help!

Program C++ I Need Help!

Answers

Answer 1

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:


Related Questions

Other Questions
PLEASE HELP ME. I WILL MARK YOU AS BRAINLINEST Here are Xavier's bowling scores:135, 140, 130, 190, 112, 200, 185, 172, 163, 151, 149what is the standard deviation rounded to the nearest tenth? Which is NOT a role of the president?A. Chief ExecutiveB. Commander-in-ChiefC. Head of StateD. Chief Justice complete the chart. what does "strike" mean in this passage? Antonym for Radiation lol can somebody help me Which numbers from the set {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10), if any, will solve this equation?2x + 3 = 5x - 3 PLS HELP ASAP!!! I WILL GIVE BRAINLIEST!!!!!How does the setting influence the theme and conflict in the story "The queen bee" By Carl Ewald Aydenme por favor es muy importante Which is the graph of the inequality: y is less than (1/2x - 2)^3 Question 3 of 10Which of these describes how reporters who practice "yellow journalism" act?A. They write the news in the most objective manner possible.B. They only report part of the big news stories.C. They attempt to remove their personal opinions from stories.D. They don't worry about whether the information they report iscorrect or not.SUBMIT is this just a glitch for me or does flamingos 2nd newest video say it it was made 20yrs ago? A substance that is uniform in composition, made up of two or more atoms in the same place, and NOT chemically combined is a _______________.elementhomogeneous mixturecompound heterogeneous mixture The study of the connection of the roles of different animal systems is called Tap the pic Answer it pls Is it abc or d I will give brainliest!!!!!!Which one !! Fast hurry PLEASE HELP ME WITH THIS !! The word stricture is formed from the Latin root -strict-. Based on your knowledge of this root, what is most likely the meaning of a stricture? Use the sentence below to determine the meaning.as the barge floated down the mississippi river it neared a stricture as it reached the benda. movement through a passageb. distance through a passage c. narrowing of a passaged. opening of a passage A tank of gas is found to exert 8.6 atm at 38C. What would be the requiredtemperature to change the pressure to standard pressure? 40 points, please helpHow does the act of sealing the 144,000 as described in Revelation 7:1-8 compare or contrast from the events that unfold with the opening of the sixth seal as described in Revelation 6:12-17?You may include references from Revelation 6:12 through Revelations 7:8 to support your answer. At 10:00 a.m. the temperature is 3.4F. The temperature increases 0.5F each hour for the next 6 hours. If the temperature drops a total of 5.3F over the following 3 hours, what is the temperature at 7:00 p.m.?please give an explanation too! 10. Find the vertex, domain and range from the function y = = 2|x|a V(2,0), Domain: x E R, Range: y E (00, 2]b V(0,2), Domain: x E R, Range: y [2,00)C V(0,0), Domain: x E R, Range: y (0,0]d V(0,0), Domain: x E R, Range: y [0, 0)Check itskip