编写一个程序,输入直角三角形的两个直角边的长度a、b,求斜边c的长度。 x=float(input("请输入直角边a:\n")) y=float(input("请输入直角边b:\n")) z=(x*x+y*y)**0.5 print('斜边c的长度为:',z)