fabs c 2b 2b

Solutions on MaxInterview for fabs c 2b 2b by the best coders in the world

showing results for - "fabs c 2b 2b"
Rania
03 Feb 2020
1/* fabs example */
2#include <stdio.h>      /* printf */
3#include <math.h>       /* fabs */
4
5int main ()
6{
7  printf ("The absolute value of 3.1416 is %f\n", fabs (3.1416) );
8  printf ("The absolute value of -10.6 is %f\n", fabs (-10.6) );
9  return 0;
10}
11
12/* Output */
13
14The absolute value of 3.1416 is 3.141600
15The absolute value of -10.6 is 10.600000