Write an algorithm to read an integer value for a SCORE and print the appropriate grade on the following:
Score Grade
90 or more A
Less than 90 but 80 or more B
Less than 80 but 70 or more C
Less than 70 F
Answers
Answered by
1
Explanation:
#include<stdio.h>
#include<conio.h>
int main()
clrscr()
def getLetterGrade(score):
score = round(score)
if score >= 90: return "A"
if 90 > score >= 80: return "B"
if 80 > score >= 70: return "C"
if 70 > score >= 60: return "D"
if 60 > score:
getch();
return 0;
Similar questions