ProAnswers.org

Write a C program to find out the Area and Circumference of Circle?

#include

#include 

void main() 

{ 

float a,b,c; 

clrscr(); 

printf(“enter the r value

”);

scanf(“%f”,&r); 

a=3.14*r*r; 

b=2*3.14*r; 

printf(“area=%f

”,a);

printf(“circumference=%f

”,b);

getch(); 

} 

Output: 

enter the r value 

3 

area=28.26 

circumference=18.84