You need to make sure a number the user types in is non-negative, the following functions would you use fabs.
Header report in C programming is used to get absolutely the price of a floating factor quantity. This feature returns absolutely the price in double. Syntax: double fabs (double a); Parameter: It will take a unmarried parameter that is to be transformed to an absolute price.
fabs → This converts the quantity to a glide (if possible) and returns absolutely the glide price.
Read more about programming :
https://brainly.com/question/23275071
#SPJ4