主页
C 语言
C Math hypot() 函数
demo_ref_math_hypot
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { printf("%f\n", hypot(3.0f, 4.0f)); printf("%f\n", hypot(1.0, 1.0)); printf("%f\n", hypot(1.0, 10.0)); return 0; }
5.000000
1.414214
10.049876