Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print ("Hello! welcome to my first triangle project")
- print()
- #instrctions
- name=input("what is your name")
- print()
- print("lets start " + name)
- l=int(input("enter the first lenght"))
- t=int(input("enter second length"))
- b=int(input("enter base"))
- a=int(input("enter angle"))
- #equalateral
- if l ==t and t==b and a!=90:
- print("its an equalateral triangle with all angles equal thus haveing 60° each")
- if a==90:
- print("its a right angle triangle")
- # scalene
- if l!=t and t!=b and a!=90:
- print("its a scalene triangle with no sides equal.")
- #issoceles
- if l==t and t!=b and a==60 :
- print("its an Issoceles triangle with 2 equal angles")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement