Quiz: else if

What does this program print?

#include <iostream>

int main() {
    int score = 85;

    if (score > 50) {
        std::cout << "Good" << std::endl;
    } else if (score > 80) {
        std::cout << "Excellent" << std::endl;
    } else {
        std::cout << "Try again" << std::endl;
    }
}

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

7/12