Question: Question 27 Not yet answered Write a program in C++ using templates to create a generic function with the name area with two arguments, which

Question 27 Not yet answered Write a program in C++ using templates to create a generic function with the name area with two arguments, which receives either integer or float data types. The generic function evaluates the following algebraic expressions. Marked out of 12.00 Flag question 2= - 2xy + y Print the value of variable c. Sample output 1: Enter two numbers: 2 3.5 area of numbers 2 and 3.5 is: 2.25 Enter two numbers: 2.5 3 area of numbers 2.5 and 3 is: 0.25 Enter two numbers: 2 1.5 area of numbers 2 and 1.5 is: 0.25 Enter two numbers: 1.5 3 area of numbers 1.5 and 3 is: 2.25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
