07/06/26 18:08:15
x^2+y^2で見切り発車します。
>>173
#include<stdio.h>
double power2(double x,double y);
int main(void)
{
double a,b;
printf("実数 a:");scanf("%lf",&a);
printf("実数 b:");scanf("%lf",&b);
printf("答え = %.2f", power2(a, b));
return 0;
}
double power2(double x,double y)
{
return x*x+y*y;
}