70.4k views
5 votes
Test if a number grade is an A (greater than or equal to 90). If so, print "Great!". Sample Run Enter a Number: 98 Sample Output Great! Hint Grades may be decimals

User Totero
by
6.9k points

1 Answer

6 votes

Answer:

Using Python language :

a = eval ( input ( "Enter a mark please"))

if ( a <0){

print ("Invalid mark")};

else if (a >=90 && a <=100){ print

( "GREAT")};

Step-by-step explanation:

User Chippycentra
by
7.7k points