// a program to check whether a number is even or odd
#include //header file
using namespace std;
int main()
{
int number; // declare number as integer
cout<<"Enter a number to check whether it is even or odd \n "< cin>>number; //scans the number
if(number%2==0)//condition if the remainder after ? the number with two. If zero, then the number is even
{
cout<<"THE NUMBER IS EVEN \n"< }
else // if not even then it's odd
{
cout<<"THE NUMBER IS ODD \n"<
}
return 0; //return the value to zero. End of program
}
Joshua_white answered the question on March 8, 2018 at 07:54
- Discuss process synchronization in the context of computer operating systems(Solved)
Discuss process synchronization in the context of computer operating systems
Date posted: March 5, 2018. Answers (1)
- What is a Knowledge Based System?(Solved)
What is a Knowledge Based System?
Date posted: March 3, 2018. Answers (1)
- Explain Key challenges Facing Software Engineering.(Solved)
Explain key challenges facing Software Engineering.
Date posted: March 3, 2018. Answers (1)
- Explain types of Software products.(Solved)
Explain types of software products
Date posted: March 3, 2018. Answers (1)
- Differentiate between Software Engineering and System Engineering.(Solved)
Differentiate between Software Engineering and System Engineering
Date posted: March 3, 2018. Answers (1)
- Differentiate between Computer Science and Software Engineering.(Solved)
Differentiate between Computer Science and Software Engineering.
Date posted: March 3, 2018. Answers (1)
- Describe the term Quality assurance in relation to Software Engineering.(Solved)
Describe the term Quality assurance in relation to Software Engineering.
Date posted: March 3, 2018. Answers (1)
- Explain types of Software process Models(Solved)
Explain types of Software process Models.
Date posted: March 3, 2018. Answers (1)
- What Computer Aided Software Engineering (C.A.S.E)?(Solved)
What is Computer Aided Software Engineering (C.A.S.E)?
Date posted: March 3, 2018. Answers (1)
- Explain the three levels of abstraction.(Solved)
Explain the three levels of abstraction.
Date posted: March 3, 2018. Answers (1)
- What is software process and what activities are involved?(Solved)
What is software process and what activities are involved?
Date posted: March 3, 2018. Answers (1)
- Explain the term user requirements.(Solved)
Explain the term user requirements.
Date posted: March 3, 2018. Answers (1)
- What do you understand by the term requirements in software engineering?(Solved)
What do you understand by the term requirements in software engineering?
Date posted: March 3, 2018. Answers (1)
- What is Software design?(Solved)
What is Software design?
Date posted: March 3, 2018. Answers (1)
- What is an algorithm in Computer Science?(Solved)
What is an algorithm in Computer Science?
Date posted: March 3, 2018. Answers (1)
- What is fragmentation? Tell about different types of fragmentation? What are necessary conditions for dead lock?(Solved)
What is fragmentation? Tell about different types of fragmentation? What are necessary conditions for dead lock?
Date posted: March 2, 2018. Answers (1)
- What is virtualization as used in computer.(Solved)
What is virtualization as used in computer.
Date posted: March 2, 2018. Answers (1)
- What is a virtual machine?(Solved)
What is a virtual machine?
Date posted: March 2, 2018. Answers (1)
- What is a network class?(Solved)
What is a network class?
Date posted: March 2, 2018. Answers (1)
- What is an IP address as used in networking?(Solved)
What is an IP address as used in networking?
Date posted: March 2, 2018. Answers (1)