From cdd60ad45ffb26b09658c5ef9ca75ce101f2e494 Mon Sep 17 00:00:00 2001 From: Jamal Date: Sun, 14 Dec 2025 15:31:08 +0000 Subject: [PATCH] Fix tips_calculator call to use percentage correctly --- 6-functions/33_tips_calculator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6-functions/33_tips_calculator.cpp b/6-functions/33_tips_calculator.cpp index 5a4f39b..5ac7ffe 100644 --- a/6-functions/33_tips_calculator.cpp +++ b/6-functions/33_tips_calculator.cpp @@ -17,5 +17,5 @@ int tips_calculator(float total, int number) { int main() { tips_menu(); - std::cout << "$" << tips_calculator(46.59, 2) << "\n"; + std::cout << "$" << tips_calculator(46.59, 0.2) << "\n"; // Percentage is now correct = 20% }