输入一个直角三角形的两个直角边的边长,求斜边的长度并输出
在C语言条件下.
人气:144 ℃ 时间:2020-05-17 13:33:47
解答
#include "stdio.h"
#include "math.h"
void main(){
int a,b;
float c;
printf("输入直角边长度:");
scanf("%d,%d",&a,&b);
c=(float)sqrt(a*a+b*b);
printf("斜边长度为%5.3f",c);
}
推荐
- 有一个直角三角形,两条直角边的长度是两个质数,它们的和是12cm,这个直角三角形的面积是多少?
- 直角三角形已知两个直角边长度,怎么求斜边长度
- 一个直角三角形的斜边为20cm,且两直角边的长度之比为3:4,求两个直角边的长.
- 直角三角形已知一个边和两个角度数,求另一个个边长,直角边长144,一个锐角0.25度.求直角短边长度和斜边
- 已知一个直角三角形两个直角边长为160M,108M求另一个斜边长度
- I should have known all along翻译我应该知道全部孤独;那里错了!
- 已知扇形弧长为456,拱高为629,求此弧形所对应的弦长,及狐的半径?
- 玻璃和金属是怎样实现密封的
猜你喜欢