aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNataliia Brown <[email protected]>2024-01-17 15:04:26 -0800
committerNataliia Brown <[email protected]>2024-01-17 15:04:26 -0800
commitef8d43b9cc7c4a5ef32d0f775e95a64c8700edd1 (patch)
treec1bbfcb679f16ee157d98d8fccda4aca9d8ba740
parentFinal commit (diff)
downloadhello-world-natabrown-ef8d43b9cc7c4a5ef32d0f775e95a64c8700edd1.tar.xz
hello-world-natabrown-ef8d43b9cc7c4a5ef32d0f775e95a64c8700edd1.zip
Changed Product to a variableHEADdevelop
-rw-r--r--Homework 1/Homework__1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Homework 1/Homework__1.cpp b/Homework 1/Homework__1.cpp
index cf710eb..5caf891 100644
--- a/Homework 1/Homework__1.cpp
+++ b/Homework 1/Homework__1.cpp
@@ -37,7 +37,7 @@ int main()
int my_sum = a + b + c;
int my_product = a * b* c;
- cout << "The sum of all three variables is: " << my_sum << " and the multiplied value of all three variables is: " << a * b * c << endl;
+ cout << "The sum of all three variables is: " << my_sum << " and the multiplied value of all three variables is: " << my_product << endl;
cout << "The difference between the sum and const is: " << my_sum - K << endl;
cout << "The difference between the mult and const is: " << my_product - K << endl;