Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started