Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· OpenAIAi2 WildChat-4.8M (AI2)

uses CRT; var a,b,c,s,h,p:real; begin clrscr; writeln('введите а,b,c'); readln(a);…

  1. User

    uses CRT; var a,b,c,s,h,p:real; begin clrscr; writeln('введите а,b,c'); readln(a); readln(b); readln(c); p:=(a+b+c)/2; s:=sqrt(p*(p-a)(p-b)(p-c)); h:=2*s/a; writeln(h:3); readkey; end. можешь его перевести на python

  2. Assistant

    import math

    a = float(input("Введите a: ")) b = float(input("Введите b: ")) c = float(input("Введите c: "))

    p = (a + b + c) / 2 s = math.sqrt(p*(p-a)(p-b)(p-c)) h = 2 * s / a

    print(h)