From ed353cdb579ed1ffb1c65eee11160078d9f1c836 Mon Sep 17 00:00:00 2001 From: Keisuke KUDO <151166401+Apo-Matchbox@users.noreply.github.com> Date: Tue, 29 Jul 2025 20:48:08 +0900 Subject: [PATCH] Create Variables-and-Types5 --- Variables-and-Types5 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Variables-and-Types5 diff --git a/Variables-and-Types5 b/Variables-and-Types5 new file mode 100644 index 0000000..6aa8a12 --- /dev/null +++ b/Variables-and-Types5 @@ -0,0 +1,20 @@ +```cpp +#include +using namespace std; + +int main() { + int num1, num2; + cout << "Please enter two positive integers, separated by a space: "; + cin >> num1 >> num2; + + cout << num1 << " + " << num2 << " = " << num1 + num2 << endl; + cout << num1 << " - " << num2 << " = " << num1 - num2 << endl; + cout << num1 << " * " << num2 << " = " << num1 * num2 << endl; + cout << num1 << " / " << num2 << " = " << (double)num1 / num2 << endl; + cout << num1 << " div " << num2 << " = " << num1 / num2 << endl; + cout << num1 << " mod " << num2 << " = " << num1 % num2 << endl; + + return 0; +} + +```