Advertisement
HuskieRU

task2.04

Nov 14th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. import math
  2. print("Введите стороны треугольника A B C")
  3. a=int(input())
  4. b=int(input())
  5. c=int(input())
  6. if a+b>c and a+c>b and c+b>a:
  7.     print("Треугольник можно построить")
  8.     if (a==b and a!=c) or (a==c and a!=b) or (b==c and b!=a):
  9.         print("Треугольник равнобедренный")
  10.     elif a==c==b:
  11.         print("Треугольник равносторонний")
  12.     else:
  13.          print("Треугольник прямоугольный")
  14.     else:
  15.         print("Треугольник построить невозможно")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement