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
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
Computer Science,
2 months ago
English,
2 months ago
English,
4 months ago
India Languages,
4 months ago
Hindi,
9 months ago
Math,
9 months ago