Start
Read number n.
When n = 0 go to End.
Compute r = n / 2,
If decimal part of r = 0 add 1 to Even-count
else add 1 to odd-count
endif
Go to Start
End
Print Even count , Odd count
Stop.
7.3m questions
9.7m answers