subject

NO LINKS Write a C++ program to accept a 5 digit integer and to validate the input based on the following rules.

Rules

1) The input number is divisible by 2. 2) The sum of the first two digits is less than last two digits. if the input number satisfies all the rules, the system prints valid and invalid, otherwise,

Example 1:

Enter a value: 11222

Output: Input number is valid

Example 2:

Enter a value: 1234

Output: Input number is invalid​

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 15:30
What type of forensic evidence was recovered during the bomb set off at the new mexico facility on the video that was similar to the evidence obtained at the boston bombings and how did the evidence allow the researchers to connect other pieces of evidence to the same bomb?
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
List at least one thing to check for when you're checking the clarity and professionalism of a document.
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
To include a watermark or page border on a word document, you will first need to navigate to the tab. file home insert design
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
One difference of input method between most desktop computers and most tablets is the memory the touch screen the speech recognition
Answers: 1
You know the right answer?
NO LINKS Write a C++ program to accept a 5 digit integer and to validate the input based on the fol...
Questions
question
Mathematics, 27.03.2021 03:20
question
Mathematics, 27.03.2021 03:20
question
Biology, 27.03.2021 03:20
question
Mathematics, 27.03.2021 03:20
question
Mathematics, 27.03.2021 03:20
question
Arts, 27.03.2021 03:30
Questions on the website: 13722362