Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

1045 - Triangle Types

# 1045 triangle types

a, b, c = map(float, input().split())
list = sorted([a,b,c], reverse=True)
a = list[0]
b = list[1]
c = list[2]
if a>= (b+c):
    print("NAO FORMA TRIANGULO")
elif a*a == (b*b +c*c):
    print("TRIANGULO RETANGULO")
elif a*a > (b*b +c*c):
    print("TRIANGULO OBTUSANGULO")
elif a*a < (b*b +c*c):
    print("TRIANGULO ACUTANGULO")

if a == b and b == c :
    print("TRIANGULO EQUILATERO")
elif a==b or b==c:
    print("TRIANGULO ISOSCELES")
Comment

PREVIOUS NEXT
Code Example
Python :: ex: git push new local repo 
Python :: if variable does not contain py 
Python :: Insert datframe column at specific place 
Python :: Move x-ticks to the middle of each bin 
Python :: insert key in binary tree recursively 
Python :: How to draw a Ninja Design using python turtle 
Python :: python automation to sort files 
Python :: expected str instance, NoneType found 
Python :: python join multiple strings ignore none and empty string 
Python :: python dummy command 
Python :: quoto x discord selfbot 
Python :: how many python programmers in the world 
Python :: file attributes in os 
Python :: tf.io path copy 
Python :: finns = False 
Python :: python calculate variance by hand 
Python :: python continue inner for loop 
Python :: weight constraints keras cnn 
Python :: how to output index of list python without braquets 
Python :: how to get user id discord.py 
Python :: requests-html 
Python :: Perform a right outer join of self and other. 
Python :: entry point to programming Spark with the Dataset and DataFrame API 
Python :: convert excel cellname to index python 
Python :: Return the indices of the bins 
Python :: python coule nod import the module virtualenvwrapper.hook_loader 
Python :: regrid ntdcf file usig xarray 
Python :: python to exe converter online 
Python :: how to type shashank in python 
Python :: resizing windows with background tkinter 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =