write an c progam to find area of circle
Answers
Answer:
C Program
C Program#include<stdio.h>
C Program#include<stdio.h>int main() {
C Program#include<stdio.h>int main() {float radius, area;
C Program#include<stdio.h>int main() {float radius, area;printf("\nEnter the radius of Circle : ");
C Program#include<stdio.h>int main() {float radius, area;printf("\nEnter the radius of Circle : ");scanf("%d", &radius);
C Program#include<stdio.h>int main() {float radius, area;printf("\nEnter the radius of Circle : ");scanf("%d", &radius);area = 3.14 * radius * radius;
C Program#include<stdio.h>int main() {float radius, area;printf("\nEnter the radius of Circle : ");scanf("%d", &radius);area = 3.14 * radius * radius;printf("\nArea of Circle : %f", area);
C Program#include<stdio.h>int main() {float radius, area;printf("\nEnter the radius of Circle : ");scanf("%d", &radius);area = 3.14 * radius * radius;printf("\nArea of Circle : %f", area);return (0);
Answer:
#include < stdio.h >
#include < conio.h > #define PI 3.141
int main()
{
float radius, area;
printf("Enter radius of circle\n");
scanf("%f", & radius);
area = PI * radius * radius;
printf("Area of circle : %0.4f\n", area);
getch();
return 0;
}