Program 12:- Make use of *format ( )* function and display the area of a circle.
Answers
Answered by
3
radius = int(input('Please Enter the Radius of Circle:'))
print('Radius = ',radius)
PI = 3.1428
Area = PI * radius * radius
print('Area of Circle is:',format(Area,' .2f'))
*Output*
Please Enter the Radius of Circle: 4
Radius: 4
Area of Circle is: 50.28
Similar questions