Hello porkshop,
After your else statement put std::cout << "\n The number of times is: " << numTries - 1 << std::endl;
.
If you mean something else rephrase your question.
Andy
P.S. Watch your indenting. From line 11 everything is in to far.
Last edited on