Uri solution 1012 Area

#include<stdio.h>
int main()
{
      double A,B,C,pi=3.14159,tri,cri,tra,sq,rec;
      scanf("%lf %lf %lf",&A,&B,&C);
       tri=((1.00/2.00)*(A*C));
       cri=(pi*C*C);
       tra=((1.00/2.00)*(A+B)*C);
       sq=(B*B);
       rec=(A*B);
       printf("TRIANGULO: %.3lf\n",tri);
       printf("CIRCULO: %.3lf\n",cri);
       printf("TRAPEZIO: %.3lf\n",tra);
       printf("QUADRADO: %.3lf\n",sq);
      printf("RETANGULO: %.3lf\n",rec);
      return 0;
}

Comments

Popular posts from this blog

Uri Solution 2747 Output 1

Codeforces Solution 230B T-primes