Odd even program, C/C++ Programming

Write a program called OddEven that will prompt the user for an integer and print/display a message indicating whether it is even or odd. Continue prompting for numbers from the user and displaying odd/even until the user enters 0. When 0 is entered, exit the loop and display "Goodbye".

Sample Run:

Enter a number: 4

Even

Enter a number: 3

Odd

Enter a number: 99

Odd

Enter a number: 1

Odd

Enter a number: 0

Even

Goodbye!

Posted Date: 3/19/2013 5:16:51 AM | Location : United States







Related Discussions:- Odd even program, Assignment Help, Ask Question on Odd even program, Get Answer, Expert's Help, Odd even program Discussions

Write discussion on Odd even program
Your posts are moderated
Related Questions

Should I explicitly call a destructor on a local variable? Explain it.


write a promgram using object oriented peramid

A: Provided that function parameter is "const reference", compiler create temporary variable in following two ways. a) The actual argument is the correct type, however it isn't

program to check whether a given point lies inside a rectangle or not


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

Define some Important Point for bit fields with structures? Only n lower bits will be assigned to an n bit number thus type cannot take values larger than 15 (4 bits long)

Constructor and Destructor function with derived classes If there are constructors included in the base class and the derived class, the compiler automatically calls both of th