c语言 hypot 函数 求三角形斜边长

Modified on: Mon, 25 Feb 2019 20:47:52 +0800 热度: 1,471 度

#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[])
{

double a,b,c;
a=3;b=4;
c=hypot(a,b);
printf("c=%lf\n",c);
return 0;

}

添加新评论