Advertisement
MOHD_NASIR_UDDIN42

1012-Area-Uri Online Judge.

May 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     double A,B,C,V,W,X,Y,Z;
  5.     scanf("%lf%lf%lf",&A,&B,&C);
  6.     V=((1.0/2)*A*C);
  7.     W=(3.14159*C*C);
  8.     X=(((A+B)/2)*C);
  9.     Y=(B*B);
  10.     Z=(A*B);
  11.     printf("TRIANGULO: %.03lf\n",V);
  12.     printf("CIRCULO: %.03lf\n",W);
  13.     printf("TRAPEZIO: %.03lf\n",X);
  14.     printf("QUADRADO: %.03lf\n",Y);
  15.     printf("RETANGULO: %.03lf\n",Z);
  16.     return 0;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement