#include <iostream>
using namespace std;

class Grade {
public:
    int score;

    Grade(int s) {
        score = s;

        if (s >= 90) {
            cout << "A" << endl;
        } else if (s >= 80 && s < 90) {
            cout << "B" << endl;
        } else {
            cout << "C" << endl;
        }
    }

};

int main() {
    Grade g(95);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: