Find the sum,of 3digit matural number which are divisable by 4
Answers
Answered by
0
Answer:
Step-by-step explanation:
If N is a 3 -digit number, then 100≤N<1000 . This problem asks for the sum of all such N that is divisible by 4 . Let N=4k where k is another positive integer.
100≤N=4k<1000⟹25≤k<250 .
It is convenient to use Python to find the sum of all multiples of 4 between 100 and 1,000 (inclusive on the left side):
sum(4*k for k in range(25, 250))
The answer is 123,300 .
481 views
Similar questions