Print even and odd numbers in c