#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
double H, K, D;
do
{
printf("K=");
scanf("%lf=", &K);
}
while (K<=0);
do
{
printf("H=");
scanf("%lf=", &H);
}
while (H<=0);
do
{
printf("D=");
scanf("%lf=", &D);
}
while (D<=0);
K=2*(sqrt(M_PI * K));
H*=3/sqrt(0.75*H);
D=sqrt(8*D);
if (K>H)
{
if (K>D)
printf("Perimetr kruga bolshe ");
else
printf("Perimetr kvadrata bolshe ");
}
else
if (H>D)
printf("Perimetr treugolnika bolshe ");
else
printf("Perimetr kvadrata bolshe ");
system("PAUSE");
return 0;
}