Algorithms Quiz | SP Contest 4 | Question 2
There are m multiples of 6 in range [0, 100] and n multiples of 6 in [-6, 35]. Find out the value of X, if X = m – n. Where X, m, and n are positive integer.
(A)
9
(B)
10
(C)
11
(D)
12
Answer: (B)
Explanation:
There are 17 multiple of 6 in between 0 and 100. So, m = 17.
There 7 multiple of 6 in between -6 and 35. So, n = 7.
X = m – n = 17 – 7 = 10.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Last Updated :
07 Jun, 2019
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...