Problem: excellent grade or not

The next exercise from this topic is to write a console program that inputs the grade (decimal number) and prints Excellent! if the rating is 5.50 or higher , otherwise "Not excellent.".

Sample Input and Output

Input Output
6 Excellent!
5 Not excellent.
5.5 Excellent!
5.49 Not excellent.

results matching ""

    No results matching ""