I'm writing a program in C and have encountered an obstacle. Here's my pseudocode:

prompt for 1st number
read 1st number
while EOF is not reached

print the number
if number is even

print"This is an even number"

else

print"This is an odd number"

read the next number

I've got the basics down, but I can't figure out how to make the program figure out whether a number is odd or even. Any help would be appreciated.

Colin