Question: Write a function in C that takes 3 arguments of type float. Your function should print out the product of the two smallest arguments and

Write a function in C that takes 3 arguments of type float. Your function should print out the product of the two smallest arguments and returns the sum of the two largest arguments. Your function should work for any arguments that are passed to it. You can assume that all 3 arguments have different values. For example if the function was passed the arguments 5.2,3.4 and 6.1, it would print out 17.68 and returns 11.3.

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 Programming Questions!