Sunday, 7 December 2014

Program to check the given number is even or odd

#include<iostream.h>

#include<conio.h>
void main()
int x;
clrscr();
cout<<"enter anumber";
cin>>x;
if(x%2==0)
goto even;
else
goto odd;
even:cout<<x<<"is even number.";
return;
odd:cout<<"is odd number."
getch();
}