include stdio include stdlib include conio include math int main void

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
int main(void)
{
double K,H,D,a,b,c;
printf("Vvedite K \n");
scanf("%lf",K);
printf("Vvedite D \n");
scanf("%lf",D);
printf("Vvedite H \n");
scanf("%lf",H);
a=2*(M_PI)*sqrt(K/ M_PI );
b=6*H*sqrt(3);
c=2*sqrt(2*D);
if (a>b&&a>c)
printf("Perimetr kruga bol'shij");
else
{
if (b>a&&b>c)
printf("Perimetr treugol'nika bol'shij");
else
printf("Perimetr kuba bol'shij");
}
system("pause");
return 0;
}