From 3b59afdca9e349bf57af7f1724fe26ecf1678572 Mon Sep 17 00:00:00 2001 From: Dmytro Cheholia Date: Wed, 31 Jan 2024 14:43:20 +0000 Subject: [PATCH] feat: add sum --- show_sum/main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 show_sum/main.cpp diff --git a/show_sum/main.cpp b/show_sum/main.cpp new file mode 100644 index 0000000..8538509 --- /dev/null +++ b/show_sum/main.cpp @@ -0,0 +1,13 @@ +#include + +int main( void ) { + size_t one; + size_t two; + size_t sum; + std::cout << "Enter the first number: "; + std::cin >> one; + std::cout << "Enter the second number: "; + std::cin >> two; + sum = one + two; + std::cout << "The sum of " << one << " and " << two << " is " << sum << std::endl; + } \ No newline at end of file