File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1- #35- Develop a program that reads the length of three straight lines and tells the user whether or not they can form a
1+ #Analyzing Triangle v1.0
2+ #35-Develop a program that reads the length of three straight lines and tells the user whether or not they can form a
23# triangle.
34print ('-=-' * 20 )
45print (' Triangle analyzer...' )
1011 print ('The segments above CAN form a triangle.' )
1112else :
1213 print ('The segments above CANNOT form a triangle.' )
14+
15+
16+ #Analisando Triângulo v1.0
17+ #035: Desenvolva um programa que leia o comprimento de três retas e diga ao usuário se elas podem ou não formar um triângulo.
18+ primeiro = float (input ('Digite o valor da primeira reta:' ))
19+ segundo = float (input ('Digite o valor da segunda reta:' ))
20+ terceiro = float (input ('Digite o valor da terceira reta:' ))
21+ if primeiro < segundo + terceiro and segundo < primeiro + terceiro and terceiro < segundo + primeiro :
22+ print ('Você terá um triângulo.' )
23+ else :
24+ print ('Você não terá um triângulo.' )
25+
26+
27+ #PT- Exercícios com uso de condicional.
28+ #EN- Exercises using conditional.
You can’t perform that action at this time.
0 commit comments