橘子味的心
标题:C库函数 - fabs()

C库函数 - fabs()

#include <stdio.h>

#include <math.h>



int main () {

   int a, b;

   a = 1234;

   b = -344;



   printf("The absolute value of %d is %lf\n", a, fabs(a));

   printf("The absolute value of %d is %lf\n", b, fabs(b));



   return(0);

}

目录

分类