C PROGRAMMING

write a c program to find area of a circle and circumfrence of a circle

#include<stdio.h>
main() {
int radius;
float PI = 3.14, area, ci;
printf("nEnter radius of circle: ");
scanf("%d", &radius);
area = PI * radius * radius;
printf("nArea of circle : %f ", area);
ci = 2 * PI * radius;
printf("nCircumference : %f ", ci);
getch();
}

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button