From f6a7a4adbab40f423370ff6451fac799a0115611 Mon Sep 17 00:00:00 2001 From: UsuaOSilver Date: Wed, 11 Sep 2024 13:58:27 -0700 Subject: [PATCH 1/2] Implemented the division function --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 47b917d..0ec7d69 100644 --- a/main.cpp +++ b/main.cpp @@ -18,6 +18,8 @@ int main(){ cout<< (first-second) << endl; cout<< "Multiplication: "<< first << "*" << second << "="; cout<< (first*second) << endl; + cout<< "Division: "<< first << "/" << second << "="; + cout<< (first/second) << endl; return 0; -} \ No newline at end of file +} \ No newline at end of file From 91cc19a626d85a3d2b8183fdd21af72bb4f65f76 Mon Sep 17 00:00:00 2001 From: UsuaOSilver Date: Wed, 11 Sep 2024 14:09:17 -0700 Subject: [PATCH 2/2] Added cmt for division function --- CppMath | 1 + main.cpp | 1 + 2 files changed, 2 insertions(+) create mode 160000 CppMath diff --git a/CppMath b/CppMath new file mode 160000 index 0000000..14936c0 --- /dev/null +++ b/CppMath @@ -0,0 +1 @@ +Subproject commit 14936c0a26d39b8368f0edd5a9f994a8c75474e4 diff --git a/main.cpp b/main.cpp index 0ec7d69..1458e03 100644 --- a/main.cpp +++ b/main.cpp @@ -18,6 +18,7 @@ int main(){ cout<< (first-second) << endl; cout<< "Multiplication: "<< first << "*" << second << "="; cout<< (first*second) << endl; + // Add division function cout<< "Division: "<< first << "/" << second << "="; cout<< (first/second) << endl;