if (userNum > 0) { cout << "Positive." << endl; } else { cout << "Not positive, converting to 1." << endl; userNum = 1; } cout << "Final: " << userNum << endl;
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment