Составьте программу на basic,которые проверяют является ли abs сторонами d треугольника? ,буду .
136
418
Ответы на вопрос:
cls
input "a="; a
input "b="; b
input "c="; c
p$ = "da"
if a + b < c then
p$ = "net"
end if
if a + c < b then
p$ = "net"
end if
if c + b < a then
p$ = "net"
end if
print p$
Microsoft qbasic 1.0 input "a,b,c=", a, b, c if a + b > c and a + c > b and b + c > a then print "da" else print "net" end if
//pascalabc.net 3.4.2
var x, max: integer;
procedure my_max(x1, x2: ^integer);
begin
if (x2^ > x1^) then x1^ : = x2^;
end;
begin
loop 6 do
begin
x : = readinteger();
my_max(@max, @x);
end;
write(max);
end.
Популярно: Информатика
-
DanilWolf12.05.2022 04:56
-
marivenkova16.05.2020 16:05
-
Горова200710.03.2023 22:46
-
светульь07.10.2021 17:54
-
kiryanovavichk04.09.2021 15:27
-
Биіккесамға02.07.2020 07:00
-
makareevakarina1722.02.2020 02:13
-
пингвиниха2017201805.01.2023 13:28
-
ele133pan11tov12.12.2022 14:58
-
Zahar447227.09.2020 21:06