头文件是#include<math.h>
示例:
#include<stdio.h>
#include<math.h>
int main()
{
float a = 3,b = 4;
float c = hypot(a,b);
printf("%.2f\n",c);
return 0;
}
//输出是5.00
头文件是#include<math.h>
示例:
#include<stdio.h>
#include<math.h>
int main()
{
float a = 3,b = 4;
float c = hypot(a,b);
printf("%.2f\n",c);
return 0;
}
//输出是5.00