From 5a6a4176163a4225b0ac457ac5f76a6feff560a5 Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 30 Mar 2023 15:26:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=90=83=E7=9A=84=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 第一讲 变量、输入输出、表达式与顺序语句/612.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/612.cpp diff --git a/第一讲 变量、输入输出、表达式与顺序语句/612.cpp b/第一讲 变量、输入输出、表达式与顺序语句/612.cpp new file mode 100644 index 0000000..b744ce6 --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/612.cpp @@ -0,0 +1,13 @@ +#include + +using namespace std; + +const double pi = 3.14159; + +int main() +{ + int R; + cin >> R; + printf("VOLUME = %.3lf", (4 / 3.0) * pi * R * R * R); + return 0; +}