c语言__abs

 
 

#include<stdio.h>
#include<math.h>
int main (void)
{
 int a=-3;
 float f=-0.343f;
 
 printf("int absolute:%d,float fabsolute:%f\n",abs(a),fabs(f));

 
 
 getchar();
   return 0;

}

你可能感兴趣的:(c语言__abs)