Computer Science, asked by shubhamkashyap3691, 18 days ago

Input number of sides of a shape. If the number of sides are four then display square/rectangle, if the number of sides are three then display triangle, and if the number of sides are more than four then display polygon.​

Answers

Answered by cheemtu
0

ns = int(input("Number of sides: "))

if ns == 4:

   print("square/rectangle")

elif ns > 4:

   print("polygon")

else:

   print("less than 4 sides")

pls mark brainliest

Similar questions