Advertisement
Guest User

2.txt

a guest
Apr 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. def main():
  2.    a=int(input('Primeiro lado: '))
  3.    b=int(input('Segundo lado: '))
  4.    c=int(input('Terceiro lado: '))
  5.  
  6.    if not (a+b)>c and (a+c)>b and (b+c)>a:
  7.       print ('\n\nOs lados fornecidos não formam um triângulo\n\n')
  8.    elif a==b and a==c:
  9.       print ('\n\nO triângulo é isósceles\n\n')
  10.    elif a!=b and a!=c and b!=c:
  11.       print ('\n\nO triângulo é escaleno\n\n')
  12.    else:
  13.       print ('\n\nO triângulo é equilátero\n\n')
  14. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement