This commit is contained in:
flykhan 2023-03-30 15:38:07 +08:00
parent 5a6a417616
commit 937af5fba4
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#include <cstdio>
int main()
{
double A, B, C;
scanf("%lf%lf%lf", &A, &B, &C);
printf("TRIANGULO: %.3lf\n", A * C / 2);
printf("CIRCULO: %.3lf\n", 3.14159 * C * C);
printf("TRAPEZIO: %.3lf\n", (A + B) * C / 2);
printf("QUADRADO: %.3lf\n", B * B);
printf("RETANGULO: %.3lf\n", A * B);
return 0;
}