1st challenge, "Answer - The structure of C++ By Example"

  1. The 1st variable takes an int value 2, and the 2nd variable takes a value 10.
  2. The while loop checks the condition and keeps looping until a certain condition isn’t true.
  3. It calls the method which takes the value of the 1st variable as its parameter.
  4. The user is however prompted to input some numbers.
  5. Base on the user input I think, something is output to the user.

Privacy & Terms