Question: #include using namespace std; int main(){ int x = 200, y = 119; double a = 3.4, b = 5.6; a = max2(a, b); //max2

#include  using namespace std; int main(){ int x = 200, y = 119; double a = 3.4, b = 5.6; a = max2(a, b); //max2 returns the bigger value of a and b printSum(a, b); //printSum prints the sum of a and b cout << reverse(x) << endl; //reverse value of x if (isPrime(y)) printNum(y+x); //prints out y+x if y is a prime number cout << difference(a+1, b) << endl; // prints: 1.2 x = magic(x, magic(x, y)); return fun(a, b, a, b, a); } Example: Write function title for function fun. write the function max2, printSum, isPrime. Write function max3 which takes 3 decimal values as it's parameter, calls functions max2 to return the biggest value of 3 parameter values. Exercise: Write the function reverse, printNum, difference.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!