how many 3 digit numbers n are divisible by 78 or 91 ?
the answer will be 19 . explanation : 78 = 2 * 3 * 13 now multiples of 78 , 156 . . . . 780 , now 1000 - 780 = 220 only two more muktiples of 78 can exists . so total number of 3 digit multiples of 78 are 9 + 2 = 11 91 = 13 * 7 - - total number of three digit multiples - - 9 no remember we have a common multiples as well n - - 13 * 7 * 6 = 91 * 6 = 546 so total number of multiples - - 11 + 9 - 1 = 19 . hence answer is 19 . b
add(subtract(91, 78), multiply(3, const_2))