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.
if (score > 100) {
std::cout << "High" << std::endl;
}
else if (score < 100) {
std::cout << "Low" << std::endl;
}
Comments
Leave a comment