标签:std math can scan printf float oat turn int
#include<stdio.h>
#include<math.h>
int main()
{
float sqrt_2(int x,int y);
int a,b;
float z;
scanf("%d%d",&a,&b);
z=sqrt_2(a,b);
printf("%.2f",z);
}
float sqrt_2(int x,int y)
{
float c;
c=sqrt(x*x+y*y);
return(c);
}
标签:std math can scan printf float oat turn int
原文地址:https://www.cnblogs.com/3w1z3/p/10821881.html