OOP
Sunday, December 7, 2014
Write a c++ program to check whether the given number is odd or even
#include<iostream>
using namespace std;
void Even-Odd(int v)
{
if(v%2==0)
cout<<"the number is Even";
else
cout<<" the number is Odd";
}
int main()
{
int v;
cout<<"the number is check Even or Odd";
cin>>v;
Even-Odd(v);
Return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment