WAP to calculate and display area and circumference of a circle by accepting radius. (Area=π r2 and circumference = 2πr )
Eg:
Input
radius(r)=3
output
area= π r2=3.14*3*3=28.26
circumference=2*3.14*3=18.84
Published By : Sunita Chhetry
WAP to calculate and display area and circumference of a circle by accepting radius. (Area=π r2 and circumference = 2πr )
Eg:
Input
radius(r)=3
output
area= π r2=3.14*3*3=28.26
circumference=2*3.14*3=18.84