Program to check even and odd numbers, C/C++ Programming

Program to check even and odd numbers:

int main()


                int  your_number;

                cout << "Enter a whole number: ";

                cin >> your_number;


                if (your_number % 2 == 0)

                   cout << "Your number is even\n";



                  cout << "Your number is odd.\n";


cout << "That's all!\n";

return 0;


Posted Date: 10/18/2012 8:00:27 AM | Location : United States

Related Discussions:- Program to check even and odd numbers, Assignment Help, Ask Question on Program to check even and odd numbers, Get Answer, Expert's Help, Program to check even and odd numbers Discussions

Write discussion on Program to check even and odd numbers
Your posts are moderated
Related Questions
how to create database of faculty database......... send me with program

Develop Pidgin for Windows Project Description: I want to build Pidgin (open source instant messenger) for Windows with D-Bus support enabled. I've effectively built both

c program to construct a structure: struct sensus                 {                                 char name[30];                                 long int population;

Explain zero based addressing. - Array subscripts always start at zero. - These subscript values are used to identify elements in the array. - As subscripts start at 0, a

smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Illustration of Grid function: For illustration, the script below creates two individual figure windows. At First, it clears the figure window. Then, it generates an x vector

What does this mean that "friendship isn't transitive, inherited or reciprocal"? A: As I grant you friendship access to me doesn't grant your kids automatically access to me, do

Define Register Variables - Low Level Programming? The Register variables are a special case of an automatic variable. The Automatic variables are allocated storage in the memo