find all even numbers between 2 and 16
Answers
Answered by
0
Answer:
No need to iterate to to determine this number. The count of even numbers between 0 and n is [n/2] + 1. Therefore the count of even numbers between (n + 1) and m is ([m/2] + 1) - ([n/2] + 1) = [m/2] - [n/2]. For count of even numbers between m and n the answer therefore would be [m/2] - [(n - 1)/2].
Answered by
3
Answer:
Abey ohh free points lene walle mere ques m spam mt kr
Similar questions