Question #283015

Write an if-else statement that outputs the word High if the value of the variable score is greater than 100 and Low if the value of score is less than100. The variable score is of type int.


Expert's answer

if (score > 100) {
    std::cout << "High" << std::endl;
}
else if (score < 100) {
    std::cout << "Low" << std::endl;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS