阅读背景:

通过两条边 计算直角三角形第三条边

来源:互联网 
#include <stdio.h>
#include <math.h>
double hypotenuse(double, double);

int main(){
    double x, y;
    x = 5;
    y = 12;
    printf("%lf", hypotenuse(x, y));

}
//计算直角三角形第三条边
double hypotenuse(double a, double b){
    return sqrt(pow(a,2)+pow(b, 2));
}#include <stdio.h>
#include <math.h>
double hyp



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: