Chapter 4: Problem 19
Write an if / else statement that prints "Excellent" when score is 90 or higher, "Good" when score is between 80 and 89 , and "Try Harder" when score is less than 80.
Chapter 4: Problem 19
Write an if / else statement that prints "Excellent" when score is 90 or higher, "Good" when score is between 80 and 89 , and "Try Harder" when score is less than 80.
All the tools & learning materials you need for study success - in one app.
Get started for freeIf the sub-expression on the left of the && logical operator is __________, the right sub-expression is not checked.
The trailing else in an if/else if statement has a similar purpose as the __________ section of a switch statement.
For an if statement to conditionally execute a group of statements, the statements must be enclosed in a set of __________.
An expression using the greater-than, less-than, greater-than-or-equal-to, less-than-orequal-to, equal, or not-equal operator is called a(n) __________ expression.
Logical operators have __________ precedence than relational operators.
What do you think about this solution?
We value your feedback to improve our textbook solutions.