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

Change the matrix program (program 3) slightly. Overload == operator to compare two matrices to be added or subtracted. i.e., whether the column of first and the row of second

Question: a) Give two uses of NFS. b) Give one advantage of using NFS. c) Explain the following lines as they would be interpreted in the /etc/exports file i. /usr/local

You are required to give C++ implementation of following classes: 1. PropertyCategories 2. Plot 3. Flat 4. House Following is the description of all data member and member funct

why c is middle level language?

Program to store family members details in C++: #include #include #include struct record {   char name[30];   int age;   char state[40]; }x; //cal


C Program to FIND VOWELS   void main() {           char str[50];           int ac=0, ec=0, ic=0, oc=0, uc=0;           int i,stln,vc,word=1;           clrscr