From ee60889d2ee90213329fa6d581fb32edcec7a1f9 Mon Sep 17 00:00:00 2001 From: Catherine McGiure Date: Thu, 12 Sep 2024 11:14:57 -0700 Subject: [PATCH 1/2] updated description --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 08dfcf5..90f6e0a 100644 --- a/main.cpp +++ b/main.cpp @@ -1,4 +1,5 @@ #include +// practice int main(){ double first, second; @@ -14,4 +15,4 @@ int main(){ std::cout<< (first-second) << std::endl; return 0; -} \ No newline at end of file +} From 050ce19069b400faf458594008260706b8453c72 Mon Sep 17 00:00:00 2001 From: Catherine McGiure Date: Thu, 12 Sep 2024 12:56:15 -0700 Subject: [PATCH 2/2] Added comments to clarify functionality --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index c9632ea..e61cf90 100644 --- a/main.cpp +++ b/main.cpp @@ -1,18 +1,20 @@ #include -// practice using std::cout; using std::cin; using std::endl; int main(){ + // creating inputs double first, second; + // printing statements to alert the user to enter inputs cout<< "First number: "; cin>> first; cout<< "Second number: "; cin>> second; + // printing results of operations cout<< "Addition: "<< first << "+" << second << "="; cout<< (first+second) << endl; cout<< "Subtraction: "<< first << "-" << second << "=";