Skip to content

Commit

Permalink
Update AnaliseTriangulo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoTHS authored Apr 7, 2020
1 parent 8202863 commit 5641540
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions AnaliseTriangulo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@
print("O triangulo é escaleno")

#Retangulo
r = input("O triangulo possui um angulo de 90°? ").strip().upper()[0]
if r == 'S' :
print("Retangulo = True")
else:
print("Retangulo = False")
while True:
r = str(input("O triangulo possui um angulo de 90°? [S/N]")).strip().upper()[0]
if r in 'SN':
if r == 'S':
print("Retangulo = True")
else:
print("Retangulo = False")
break
print("Escolha uma opcao valida!")

0 comments on commit 5641540

Please sign in to comment.