Computer Science, asked by saminaattar9995, 7 months ago

program to calculate area of circle​

Answers

Answered by kumarishruti4
1

Answer:

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);

}

1

2

3

4

5

6

7

8

9

10

11

12

13

#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);

}

Output :

Enter the radius of Circle : 2.0

Area of Circle : 6.14

1

2

Enter the radius of Circle : 2.0

Area of Circle : 6.14

Similar questions