Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

MY PROGRAMMES

Thursday, April 6, 2023

HYPOTENUSE OF A RIGHT TRIANGLE

p=int(input("Enter the value of perpendicular of right triangle = "))
b=int(input("Enter the value of base of right triangle = "))
h=((p**2)+(b**2))**0.5
print(' A         ')
print(' .          ')
print(' . .        ')
print(' .  .       ')
print(' .   .      ')
print(' .    .     ')
print(' .     .    ')
print(' .      .   ')
print(' . . . . .  ')
print(' B','      C',"\n")
print("The hypotenuse of the triangle =",h,"units")