import math
a = int(input("Birinchi sonni kiriting: "))
b = int(input("Ikkinchi sonni kiriting: "))
c = int(input("Uchinchi sonni kiriting: "))
p = (a + b +c)/2
if a + b > c and b + c > a and a + c > b:
geron = math.ceil(math.sqrt(p*(p - a) * (p - b) * (p - c)))
print("uchburchak yuzi:" , geron)
else:
print("uchburchak tengzizlika zid tomonlar")
Do'stlaringiz bilan baham: |