#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int x;
cout<<"please enter a score: ";
cin>>x;
if(x >= 90){
cout<<"excellent!";
}
else if(x<90&&x>79){
cout<<"good!";
}
else if(x<80){
cout<<"try harder!";
}
return 0;
}
I think this is what you were looking for.