From ef8d43b9cc7c4a5ef32d0f775e95a64c8700edd1 Mon Sep 17 00:00:00 2001 From: Nataliia Brown Date: Wed, 17 Jan 2024 15:04:26 -0800 Subject: Changed Product to a variable --- Homework 1/Homework__1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Homework 1/Homework__1.cpp') 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; -- cgit v1.2.3