Triangle identifier
Sun Nov 26 2023 18:46:33 GMT+0000 (Coordinated Universal Time)
Saved by
@Matess08
#python
t = int(input(""))
p = 0
mylist = []
if t >= 0 and t < 101:
while p<t:
a = int(input("a "))
b = int(input("b "))
c = int(input("c "))
if a <= 20000 and a >= 1:
if b <= 20000 and a >=1:
if c <= 20000 and c >=1:
if a+b<=c or a+c<=b or b+c<=a:
txt = ("nelze sestrojit")
else:
if a == b and b == c and c == a:
txt = ("rovnostranny")
elif a == b or b == c or c == a:
txt = ("rovnoramenny")
else:
txt = ("obecny")
else:
txt = ("moc velké nebo malé číslo")
else:
txt = ("moc velké nebo malé číslo")
else:
txt = ("moc velké nebo malé číslo")
p = p+1
mylist.append(txt)
print(p)
print(mylist)
else:
print("syntax")
content_copyCOPY
Identify if witch triangle is it
Comments