Question: Using C++ Q#4 Write a program that will display the largest based on sum of the values. Write a main function that declare three integer
Using C++
Q#4 Write a program that will display the largest based on sum of the values. Write a main function that declare three integer variables and pass them by reference into a function named getInput to get the input from user. Return type of getInput function should be void. The main function than call a function named getSum which receives three integers and return their sum to main function. If the sum is even the main function should call another function named getLargest which receives three integers and return the largest value. If the sum is odd than simply display the message that sum of integers is odd
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
