int score = 85;
if (score >= 90) {
cout << "A";
} else if (score >= 80) {
cout << "B";
} else if (score >= 70) {
cout << "C";
} else {
cout << "F";
}
// Output: B
== != > < >= <=
age >= 18 && hasID // AND
x < 0 || x > 100 // OR
!isRaining // NOT
Write classify(int n) that returns:
"negative" if n < 0"zero" if n == 0"positive" if n > 0Click "Run" to execute your code.