Medium
Grades for a Whole Class
Write
grade(mark) returning A (80+), B (60–79), C (40–59) or F. Read marks and print how many students got each grade as A:n B:n C:n F:n.Input
Integers separated by spaces.
Output
One line.
Sample 1
Input
85 60 45 30 90
Output
A:2 B:1 C:1 F:1
Sample 2
Input
100
Output
A:1 B:0 C:0 F:0
Output appears here