double fabs(double x);
#include<stdio.h> #include<math.h> int main() { double a=3.3, b=-4.4; //為變數賦初值 double c =fabs(a); //求a的絕對值 double d = fabs(b); //求b的絕對值 printf("%lft%lfn", c, d); return 0; }