Question: Create a C + + program called lab 1 _ 1 . cpp that reads three numbers from a user. Then it calls a function
Create a program called labcpp that reads three numbers from a user. Then it calls a function named findmax which takes three integers are arguments, finds the largest of the three numbers, and then returns the largest number. This result is finally printed onto the screen.
Here is your function prototype:
int findmaxint int int ;
Here is your main function note you must use this main, you aren't allowed to modify it:
int main
int num num num largest;
cout "Please enter three numbers: ;
cin num num num ;
write the statement that calls findmax and stores
the value returned in largest
cout "The largest number is largest In;
return ;
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
