subject

Write a program which asks the user to enter an integer. Your program should then display the sum of the even digits of the integer. A typical run would be: Enter an integer greater than 10000: 34 34 is not greater than 10000 Enter an integer greater than 10000: 39428 The sum of the even digits of 39248 is: 14 Hints: Use a loop to ensure that the number entered is > 10000. You don’t need to be concerned with the length of the integer, use a while loop which ends when the number is equal to zero. You will need to preserve the original value entered, so after the user enters it, copy it to another int variable. You can access the last digit of an integer by dividing modulo by 10, eg digit = workingNumber % 10; You can remove the last digit of an integer by dividing by 10, eg workingNumber /= 10;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Text or graphics that print at the bottom of every page are called footings footers headers headings
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
Holly created a professional development plan to explore how she could advance from her entry-level position to the next step in her career. she has identified her current skills and the skills needed for the job she wants. what should she do now? a) ask a colleague for advice about work-life balance b) identify her areas for improvement c) plan a vacation before she begins her new job d) wait until a position opens before continuing her plan
Answers: 1
question
Computers and Technology, 25.06.2019 08:10
Which of the following is a difference between the systems development life cycle (sdlc) and extreme programming (xp)? the sdlc model has a separate planning and analysis phase, whereas xp combines both the phases into one phase.in the sdlc model, changes cannot be made to a system once it is delivered to the user, whereas the xp method delivers the system to the users and then make changes suggested by the user.the sdlc model develops an entire system at once, whereas xp uses incremental steps to improve an information system's qualitydevelopers following the sdlc model cannot go on to the next phase until the current phase is finished, whereas in xp, developers can move to any phase from the current phase.
Answers: 1
You know the right answer?
Write a program which asks the user to enter an integer. Your program should then display the sum of...
Questions
question
Advanced Placement (AP), 28.07.2019 06:00
question
Mathematics, 28.07.2019 06:00
Questions on the website: 13722360