Computer Science, asked by Anonymous, 8 months ago

Write a python program coding. To input choice ( 1 or 2). if choice is , print the area of circle otherwise print the perimeter of circle.​

Answers

Answered by rishavsharma21pd1prg
1

Answer:

# Mark me as brainliest

x=int(input('Enter the radius of circle'))

choice=int(input('Enter 1 for area \nEnter 2 for perimeter \nEnter your choice'))

if choice==1:

   print('The area of circle is',3.14*x*x)

elif choice==2:

     print('The perimetre of circle is',2*3.14*x)

else:

   print('Wrong choice')

Similar questions