subject

Write a program that takes an integer from the user via the keyboard and passes the integer by Reference to a void method or function. The method or function should determine if the number is odd or even. If the integer is even the method adds 2 to the number and keeps it even. If the integer is odd the method adds five to the number to make it even. Once the program returns to main, output to the screen the new number.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
Ineed on my history if anyone can check out the last few questions i posted and i will be posting !
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
You know the right answer?
Write a program that takes an integer from the user via the keyboard and passes the integer by Refer...
Questions
question
Mathematics, 15.04.2021 22:10
question
Mathematics, 15.04.2021 22:10
question
Mathematics, 15.04.2021 22:10
question
Mathematics, 15.04.2021 22:10
question
History, 15.04.2021 22:10
question
Mathematics, 15.04.2021 22:10
Questions on the website: 13722361