4. Write a C function that calculates and prints the result of the following expression: a? - b2 c-d Your function shoul
Posted: Mon May 09, 2022 6:19 am
4. Write a C function that calculates and prints the result of the following expression: a? - b2 c-d Your function should take as input four floating-pointing arguments: a, b, c, and d. Your function should check whether c - d = 0, and if true, print the message below and let the user try new inputs: “The denominator should not be 0. Please try again!" Otherwise, your function should continue with the calculation and print the result as: "The result is ......" In your main function, take user inputs from console to assign values to a, b, c, and d. Allow repetitive user inputs and calls of this function, until a legitimate result can be calculated and printed to console (i.e., when c - d = 0). For this problem, please put your user-defined function and the main function in the same C script. (25 pts)