From a3cc522db903b9b0d7da72f550718dc1db909cdd Mon Sep 17 00:00:00 2001 From: Angel Garcia Date: Wed, 31 Jan 2024 14:35:58 -0800 Subject: [PATCH] added ann if statement, that prints an error message when attempting to divide by zero --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index 781dfc7..78e643a 100644 --- a/main.cpp +++ b/main.cpp @@ -11,7 +11,11 @@ int main() std::cout << "Addition: " << x + y << std::endl; std::cout << "Subtraction: " << x - y << std::endl; std::cout << "Multiplication: " <