What is the simplest way to calculate the amount of even numbers in a range of unsigned integers?
An example: if range is [0...4] then the answer is 3 (0,2,4)
I\
This does not require any conditions at all:
evencount = floor((max - min)/2) + 1