Joy of Programming
Friday, 20 December 2013
Odd or Even
Write a program to check Odd or even??
# include <iostream.h>
# include <conio.h>
int main()
{
int Test_No;
cin>>Test_No;
if(Test_No%2==0)
cout<<"Even";
else
cout<<"odd";
return 00;
}
output:
5
odd
******
6
Even
******
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment