Computer Science, asked by deepaksinoy, 4 months ago

Write a program to convert a numerical grade to a letter grade, ‘A’, ‘B’, ‘C’, ‘D’ or ‘F’,where the cutoffs for ‘A’, ‘B’, ‘C’, and ‘D’ are 90, 80, 70, and 60 respectively using if else ladder

python

Answers

Answered by allysia
4

Answer:

The codes are:

____________________

n=int(input("Enter the cutoff: "))

if n>=90:

   print("Grade A")

elif n>=80:

   print("Grade B")

elif n>=70:

   print("Grade C")

else:

   print("Grade D")

____________________

Similar questions