From c24de39a0430f08c08d618c54127d9e998ea4aeb Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Wed, 7 Feb 2024 14:11:48 +0100 Subject: [PATCH] refactoring: top-main --- src/main/c/Calculator/calculator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 78def37..bd752f3 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -11,8 +11,9 @@ double permutation(int n, int r); double combination(int n, int r); int main() { - double num1, num2, result, angle; - int choice,r,n; + int choice; + double num1, num2, result; + do { displayMenu();