## this is Ch1 R2.3
import math
#s = s0 + v0*t+1/2*g*t**2
#G = 4*math.pi**2*a**3/(p**2*(m1+m2))
#FV = PV*(1+INT/100)**YRS
#c = math.sqrt(a**2+b**2-2*a*b*cos(y))

x = 2.5
y = -1.5
m = 18
n = 4

print(x+n*y-(x+n)*y)
print(m//n+m%n)
print(1-(1-(1-(1-(1-n)))))
print(math.sqrt(math.sqrt(n)))

a= 18
b= 42

print('The sum of 18 and 42 is:\t',a+b,'.')
print('The difference of 18 and 42 is:\t',a-b,'.')
print('The product of 18 and 42 is:\t',a*b,'.')
print('The average of 18 and 42 is:\t',(a+b)/2,'.')
print('The distance of 18 and 42 is:\t',abs(a-b),'.')
print('The maximum of 18 and 42 is:\t',max(a,b),'.')
print('The minimum of 18 and 42 is:\t',min(a,b),'.')
