Программа:
Python:
a = float(input('a = '))
b = float(input('b = '))
c = float(input('c = '))
p = (a + b + c) / 2
S = (p * (p - a) * (p - b) * (p - c))**0.5
print(f'S = {round(S, 4)}')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Программа:
Python:
a = float(input('a = '))
b = float(input('b = '))
c = float(input('c = '))
p = (a + b + c) / 2
S = (p * (p - a) * (p - b) * (p - c))**0.5
print(f'S = {round(S, 4)}')