ANSWERS: 1
  • int counter = 1; int answer = 1; //This is the final output value. do { answer = answer * counter; ++counter; } while (counter < argument) //Don't forget to declare "argument", and cin the value if it is user input, or declare as a constant if it is not.

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy