how many numbers from 10 to 40 are exactly divisible by 3 ?
"12 , 15 , 18 , 21 , 24 , 27 , 30 , 33 , 36 , 39 . 10 numbers . 10 / 3 = 3 and 40 / 3 = 13 = = > 13 - 3 = 10 . therefore 10 digits d )"
add(divide(subtract(multiply(floor(divide(40, 3)), 3), multiply(add(floor(divide(10, 3)), const_1), 3)), 3), const_1)