From 71f04b9f60a57a13c21ade13f4b16774b0e31317 Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Mon, 7 Oct 2024 19:26:54 +0300 Subject: [PATCH] improve upon stylistic choice of Mul function The function seemed too crammed to me, so I made it look much more spacious than before. Signed-off-by: IO-23 Oleh Shmuliar --- calculator.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/calculator.cpp b/calculator.cpp index 7e4c545..a014fe5 100644 --- a/calculator.cpp +++ b/calculator.cpp @@ -10,7 +10,11 @@ int Calculator::Sub (double a, double b) return Add (a, -b); } -int Calculator::Mul (double a, double b) +int +Calculator::Mul(double a, + double b) { - return a * b + 0.5; + return a + * b + + 0.5; }