Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double A,B,C,V,W,X,Y,Z;
- scanf("%lf%lf%lf",&A,&B,&C);
- V=((1.0/2)*A*C);
- W=(3.14159*C*C);
- X=(((A+B)/2)*C);
- Y=(B*B);
- Z=(A*B);
- printf("TRIANGULO: %.03lf\n",V);
- printf("CIRCULO: %.03lf\n",W);
- printf("TRAPEZIO: %.03lf\n",X);
- printf("QUADRADO: %.03lf\n",Y);
- printf("RETANGULO: %.03lf\n",Z);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement