Tuesday, May 31, 2016

SOLUTION OF URI 1012


//    question of  uri 1012 Area
// 1012  (Mahmud_Jamil) BRUR




#include <stdio.h>
#include <math.h>
int main()
{
    double A,B,C,d,e,f,g,h,pi=3.14159;
    scanf("%lf %lf %lf",&A,&B,&C);
    d=.5*A*C;
    e=pi*C*C;
    f=.5*C*(A+B);
    g=B*B;
    h=A*B;
    printf("TRIANGULO: %.3lf\n",d);
    printf("CIRCULO: %.3lf\n",e);
    printf("TRAPEZIO: %.3lf\n",f);
    printf("QUADRADO: %.3lf\n",g);
    printf("RETANGULO: %.3lf\n",h);

    return 0;
}