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;
}
Posted by Unknown at 8:07 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2014 (12)
    • ▼  December (12)
      • Write a program Check Perfect Number using Inherit...
      • Search an element in an Array of 20 integer values...
      • Write a c++ program to count number of character i...
      • Write a c++ program to check whether the given num...
      • Write a program of function to Sum of all even ele...
      • Write a program Check whether the given number is ...
      • Write a program Check Whether the given number is ...
      • Write a C++ program to find area of triangle, circ...
      • Write a C++ program using class to calculate simpl...
      • write a program calculate square and cube of given...
      • Write a program performing as calculator which all...
      • WELLCOME
Awesome Inc. theme. Powered by Blogger.