Computer Science, asked by anwitaanu98, 8 months ago

write a program to calculate the area and perimeter of a circle and print separately​

Answers

Answered by Sneha1118
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
Sneha1118: okay let me try
anwitaanu98: hmm
Answered by 17wh1a0246
3

Explanation:

import math

r=int(input())

area=math.pi*(r**2)

perimeter=2*math.pi*r

print(area)

print(perimeter)

Similar questions