64,637
社区成员
发帖
与我相关
我的任务
分享
int main()
{
double a,b;
while(scanf("%lf,%lf",&a,&b)!=EOF)
printf("Hypotenuse:%.1f\n",hypot(a,b));
return 0;
}
int main() {
double a, b, c, d, e, f;
scanf("%1f,%1f", &a, &b);
printf("Hypotenuse: %.1f\n", hypotenuse(a, b));
scanf("%1f,%1f", &c, &d);
printf("Hypotenuse: %.1f\n", hypotenuse(c, d));
scanf("%1f,%1f", &e, &f);
printf("Hypotenuse: %.1f\n", hypotenuse(e, f));
return 0;
}