Question: 5. Write the code for a function that receives a copy of the value stored in an Integer variable. The function should divide the value
5. Write the code for a function that receives a copy of the value stored in an Integer variable. The function should divide the value by 2 and then return the result, which may contain a decimal place. Name the function GetQuotient. Then write an appropriate statement to invoke the function, passing it the intNumber variable.
Assign the function’s return value to the dblAnswer variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
