Answer to Question #283015 in C++ for foden

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.


1
Expert's answer
2021-12-27T08:38:13-0500
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!

Comments

No comments. Be the first!

Leave a comment