well i suggest the above code should have the library function math.h. this function is used to perform the arithmetic operations in a code. nad can you tell me what that "%1f" is? why is it used? whats the meaning?
No, there is no need to include math.h, that is a header file for specific maths functions none of which are used in this code - for more information review your compiler's documentation or the C standard.
%1f is a "format code" - %f is a double or float and %[fw].
f signifys the field width [fw] and precision
(substitute a number for [fw] and
obviously) where [fw] and .
are both optional