If you count 1 to 100, how many 5s will you pass on the way?

If you count 1 to 100, how many 5s will you pass on the way? Correct Answer 20

From 1 to 100 there are 20 '5s' Those are 5, 15, 25, 35, 45, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 65, 75, 85, 95. TOTAL 20.NO CORRECT ANS IN OPTION.

Related Questions

Each of a set of n processes executes the following code using two semaphores a and b initialized to 1 and 0, respectively. Assume that count is a shared variable initialized to 0 and not used in CODE SECTION P. CODE SECTION P wait (a); count=count+1 ; if (count==n) signal (b) ; signal (a) ; wait (b) ; signal (b) ; CODE SECTION Q What does the code achieve?