write a program to calculate the area and perimeter of a circle and print separately
Answers
Answered by
3
Answer:
C program to find area and perimeter of circle. This program will read radius of the circle and find the area and perimeter of the circle. Here, "R" is the radius of the circle, in this program we have a macro defined as PI with the value of PI and variable rad holds the radius entered by the user.
Explanation:
#AKsneha
anwitaanu98:
please give a pic
Answered by
3
Explanation:
import math
r=int(input())
area=math.pi*(r**2)
perimeter=2*math.pi*r
print(area)
print(perimeter)
Similar questions