Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- print("Введите стороны треугольника A B C")
- a=int(input())
- b=int(input())
- c=int(input())
- if a+b>c and a+c>b and c+b>a:
- print("Треугольник можно построить")
- if (a==b and a!=c) or (a==c and a!=b) or (b==c and b!=a):
- print("Треугольник равнобедренный")
- elif a==c==b:
- print("Треугольник равносторонний")
- else:
- print("Треугольник прямоугольный")
- else:
- print("Треугольник построить невозможно")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement