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