#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();
}
Sunday, 7 December 2014
Program to check the given number is even or odd
Posted by Madan
Posted on 13:20