print" "
print" "
print"      ***********************************************************************************************"
print"      *                                                                                             *"
print"      *       Algorithm to calculate the dimensions: a, h and area: S of the triangle rectangle     *"
print"      *                                                                                             *"
print"      ***********************************************************************************************"
print" "
print" "
print"      - Enter the catetos: b and c of the triangle: "
print" "
b = input("     cateto b: ")
c = input("     cateto c: ")
print" "
print"      - Get the hipotenuse: a of the triangle: "
from math import sqrt
a = sqrt(b*b+c*c)
print" "
print"          * The value of hipotenuse a is:", a, "cm"
print" "
print"      - Get the value of the heigth: h of the triangle: "
h = (b*c)/a
print" "
print"          * The value of the height: h is:", h, "cm"
print" "
print"      - Get the value of the area: S of the triangle: "
S = (b*c)/2
print" "
print"          * The value of the area: S is:", S, "cm^2"
print" "
print" "
print" "
print" "
print"                  . . . End Program: ok! . . ."
print" "
print" "
print" "
print" "
print"      - Note: If necessary use The Algorithm: trianglerecto.py again for any others values: b and c of the triangle rectangle "
print" "
print" "
