C Program
#include<stdio.h> void main() { int n; printf("Enter an integer\n"); scanf("%d",&n); if ( n%2 == 0 ) printf("Even"); else printf("Odd"); }
C++ Program
#include<iostream.h> void main() { int n; cout<<"Enter an integer\n"; cin>>n; if ( n%2 == 0 ) cout<<"\nEven"; else cout <<"\nOdd"; }