From 937af5fba41cdd7c2871d3a09213a513e1fd78e4 Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 30 Mar 2023 15:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=A2=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 第一讲 变量、输入输出、表达式与顺序语句/613.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/613.cpp diff --git a/第一讲 变量、输入输出、表达式与顺序语句/613.cpp b/第一讲 变量、输入输出、表达式与顺序语句/613.cpp new file mode 100644 index 0000000..bd18b22 --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/613.cpp @@ -0,0 +1,13 @@ +#include + +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; +}