Kodewick
Start learning →
Basic←→0 / 86

Letter Grade

#072Basicelse if (score >= 80)4 min

Turn a score into a letter: 90 and up is A, 80 and up is B, 60 and up is C, anything lower is D. This score is 76, so the answer is C.

Should show
C
main.cpp
#include <iostream>
using namespace std;

int main() {
    int score = 76;
    // your code here: show A, B, C or D for the score
    return 0;
}
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.