Question: Q 3 Write the following function ( 5 marks ) : Name: SmallerSum Parameters: int x , int y , int z Job: Assume x
Q Write the following function marks:
Name: SmallerSum
Parameters: int int int
Job: Assume is greater than and is smaller than Output all the values from to and their sum. Also output all the values from to and their sum. The function will return whichever sum is smaller, either from to or from to
The main is provided. You only need to write the function. No need to write the full program or any #include statements.
int maino
cout "Enter and ;
cin ;
int
wrter and
Smalle
cout "Smaller Sum : endl endl;
return
Valves from
Values from : sum
Smaller Sur
Write the function here and continue the other side the page required.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
