The e-commerce company BookShelf wishes to analyze its monthly sales data between minimum range 30 and maximum range 100.
The company has categorized these books sales into four groups depending on the number of sales. With the help of these groups, the company will know which stock they should increase or decrease in their inventory for the next month.
The groups are as follows :
Sales RangeGroups30 - 50D51 - 60C61 - 80B81 - 100A
Write an algorithm to find the group for a given book sale count.
Input :
The input consists of an integer saleCount, representing the total sales of a book.
Output :
Print a character representing the group for a given sale count.
Constraints
30 < = salesCount < = 100
Test Case 1
Input :
57
Output :
C
Explanation :
57 lies in range 51 to 60, so the group is B.
Answers
Answered by
0
Answer:
wtrwqy5dyhuh7uew2d3gerjiv
Similar questions