ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Unsorted > задача:


50938 - Translate Score into Grade

Задачи раздела

• 50967 - Finding Square Roots
• 50960 - Number of Heart Beats
• 50953 - ASCII Codes - Reverse
• 50885 - Calculate the Average
• 50887 - Average of Test Scores
• 50904 - Print All Prime Numbers
• 50895 - Hours Minutes and Seconds
• 50902 - Translate Score into Grade
• 50938 - Translate Score into Gr...
• 50890 - Convert Celsius to Fahrenheit
• 50958 - Number of Passengers in Train
• 50889 - Convert to Minutes and Sec...
• 50952 - Print All Numbers from N d...
• 50900 - Put the Numbers in Descend...
• 50884 - Area and Perimeter Of The ...
• 51106 - Polar Bear
• 51109 - Integer to English

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.

Translate Score into Grade

Write a program, which asks for a student score. Score is a number from 0-100. Translate the score into grade according to the next limits:
score >= 90 is "A"
score >= 80 is "B"
score >= 70 is "C"
score >= 60 is "D"
anything else is "F"

if the score is 100 print "Perfect score!”

Input: A positive integer number.

Output: The letter grade or "Perfect score!” for 100 points ;

Sample Input1:

Sample Input2:

Sample Input3:

85

30

100

Sample  Output1:

Sample  Output2:

Sample  Output3:

B

F

Perfect score!

 

Для отправки решений необходимо выполнить вход.

www.contester.ru