{{#items}}

{{text}}

{{/items}} {{ctaText}}

{{#items}} {{/items}}

showing results for - "c circle area"

Lucia

20 May 2017

```
1#include <stdlib.h>
2#include <stdio.h>
3#include <math.h>
4
5#define P 3.1415926535
6
7int main() {
8 int a, c;
9 double b;
10
11 printf("AREA OF A CIRCLE\n\n\n1: Direct formula\n2: Invers formula\n\nChose: ");
12 scanf("%d", &c);
13
14 switch (c)
15 {
16 case 1:
17 printf("\nEnter radius value: ");
18 scanf("%d", &a);
19
20 b = a * a * P;
21
22 printf("\nArea: %f\n\n", b);
23
24 break;
25
26 case 2:
27 printf("\nEnter area value: ");
28 scanf("%d", &a);
29
30 b = sqrt(a / P);
31
32 printf("\nRadius: %f\n\n", b);
33
34 break;
35 }
36
37 if(c != 1 && c != 2)
38 {
39 printf("The value is not accepted\n\n");
40 }
41
42 system("pause");
43}
```

similar questions

area of a circle in c programmingc program to find area of circleceil in cdraw circle cround ccomo programar a area de um triangulo em carea and circumference of a circlequeries leading to this page

area of circle formula in cc program to find area of circlefind area of circle in carea of a circle em choww to do the area of a circle in carea of circle c programc circle areaarea of circle em cc program to find area of circlehow to calculate area of a circle in carea of circle in ccircle area cc area of circlearea of a circle in c programmingprogram to find area of circle in ccircle area function carea of circle in c programarea of circle program in cc find circle areacalculate area of a circle in c programminghow to find area of a circle in c programmingc program area of circlearea of a circle chow to calculate area of circle in c programc circle area your answer for

you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content

please ensure to add code which is syntactically corrent and executes properly

ask question on maxinterview

you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content

please be clear, to the point and respectful