write a program to calculate area of circle (python programming language)
Answers
Answered by
28
Explanation:
Find the Area of a circle in python :
#method 1.
PI = 3.14.
r = float(input('Enter the radius of the circle :'))
area = PI * r * r.
print("Area of the circle is : %.2f" %area)
#method 2.
import math.
r = float(input('Enter the radius of the circle :'))
BRAINLIEST PLEASE ^_^
Answered by
29
The following codes must be typed in script mode, saved and then executed.
CODE 1:
radius = int(input("Enter the radius:")
print("The area of the circle is", radius*3.14159)
OUTPUT:
7
CODE 2:
radius = int((input("Enter the radius:")
area = radius*3.14159
print("The area of the circle is", area)
OUTPUT:
7
Similar questions