Even-After -odd

Can you send an easy to understand code for this problem

Reference Code: https://ide.codingblocks.com/s/573212
Explanation : Video

i hope this help
if you have any doubt feel free to ask

There is program of hello world in the reference code, nothing is mentioned releated to the question.

sorry the code is not saved

new link of code: