Python Kutubxonasi – Virtual Lab №1

Uchburchakning yuzini Geron formulasi orqali hisoblash

____?____
x = int(input("x = "))
y = int(input("y = "))
z = int(input("z = "))
if (x + y) > z and (x + z) > y and (y + z) > x:
    p = (x + y + z) / 2
    s = ____?____
    print("Uchburchak yuzi: ", s)
else:
    print("Bunday uchburchak mavjud emas!")
  
import math
math.sqrt(p*(p-x)*(p-y)*(p-z))
print(x)
return 0