Problem Statement
In a class, Rohan is 12th from the top and 18th from the bottom. How many students are in the class?
Explanation
If a person is a-th from the top and b-th from the bottom, total = a + b − 1. Hence 12 + 18 − 1 = 29.
Code Solution
SolutionRead Only
Total = 12 + 18 − 1 = 29
Practice Sets
This question appears in the following practice sets:
