Get integer from user Read and save integer as num If num%2=0 Print "the number is even" Else Print "the number is odd"