------三个数字找最大值------
import math # import math module
a=int(input("please input the First Number:"))
b=int(input("please input the Second Number:"))
c=int(input("please input the Third Number:"))
if((a>b) & (a>c)):
print("The largest number is:a=", a)
if((b>a) & (b>c)):
print("The largest number is:b=", b)
if((c>a) & (c>b)):
print("The largest number is:c=", c)
------三个数字求和------
import math # import math module
a=int(input("please input the First Number:"))
b=int(input("please input the Second Number:"))
c=int(input("please input the Third Number:"))
print("The sum is:", a+b+c)
------给出两个点的坐标,求两点间距离------
import math # import math module
a=float(input("please input X1:"))
b=float(input("please input Y1:"))
c=float(input("please input X2:"))
d=float(input("please input Y2:"))
print("The distance is:", math.sqrt((a-c)*(a-c)+(b-d)*(b-d)))
------给出两个点的坐标,求线段斜率------
import math # import math module
a=float(input("please input X1:"))
b=float(input("please input Y1:"))
c=float(input("please input X2:"))
d=float(input("please input Y2:"))
print("The gradient is:", (b-d)/(a-c))