From 6b4373f3c0176b50a869b7d3d513cf80025ca688 Mon Sep 17 00:00:00 2001 From: flykhan Date: Wed, 22 Mar 2023 23:26:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 第一讲 变量、输入输出、表达式与顺序语句/608-2.cpp | 8 ++++++++ 第一讲 变量、输入输出、表达式与顺序语句/608.cpp | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/608-2.cpp create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/608.cpp diff --git a/第一讲 变量、输入输出、表达式与顺序语句/608-2.cpp b/第一讲 变量、输入输出、表达式与顺序语句/608-2.cpp new file mode 100644 index 0000000..d03c670 --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/608-2.cpp @@ -0,0 +1,8 @@ +#include + +int main(){ + int a, b, c, d; + scanf("%d%d%d%d", &a, &b, &c, &d); + printf("DIFERENCA = %d\n", a * b - c * d); + return 0; +} \ No newline at end of file diff --git a/第一讲 变量、输入输出、表达式与顺序语句/608.cpp b/第一讲 变量、输入输出、表达式与顺序语句/608.cpp new file mode 100644 index 0000000..3ee952d --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/608.cpp @@ -0,0 +1,11 @@ +#include + +using namespace std; + +int main() { + int a, b, c, d; + cin >> a >> b >> c >> d; + + cout << "DIFERENCA = " << a * b - c * d << endl; + return 0; +} \ No newline at end of file