From 6a19375953340739bc9004b912b521e9a4cb5a3a Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Wed, 7 Feb 2024 17:48:17 +0000 Subject: [PATCH] Updated header file to calculator.h --- src/main/c/ConvertMode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/c/ConvertMode.c b/src/main/c/ConvertMode.c index 5ce125c..6e985cf 100644 --- a/src/main/c/ConvertMode.c +++ b/src/main/c/ConvertMode.c @@ -4,7 +4,7 @@ #include #include -#include "taschenrechner.h" +#include "calculator.h" // Unit converter mode int choice, startingUnit, endingUnit; @@ -174,7 +174,7 @@ double getValue(int choice) { result = ConArea(value, startingUnit, endingUnit); - printf("\nThe convertet result is %dlf %d²", result, Distance[endingUnit]); + printf("\nThe convertet result is %dlf %d", result, Distance[endingUnit]); break; case 12://char Distance[] = { 'mm', 'cm', 'm', 'km', 'feet/inch', 'miles'}; @@ -186,7 +186,7 @@ double getValue(int choice) { result = ConArea(value, startingUnit, endingUnit); - printf("\nThe convertet result is %dlf %d³", result, Distance[endingUnit]); + printf("\nThe convertet result is %dlf %d", result, Distance[endingUnit]); break; case 13://char Time[] = { 'ms', 's', 'min', 'h', 'd', 'w', 'mon', 'y' }; @@ -243,8 +243,8 @@ void unitConverterMode() { printf("10. Convert Data size (MB, GB, TB)\n"); printf("Area/Volume conversions \n"); - printf("11. Convert area (cm², m², km²) \n"); - printf("12. Convert Volume (cm³, m³, km³)\n"); + printf("11. Convert area (cm, m, km) \n"); + printf("12. Convert Volume (cm, m, km)\n"); printf("Time conversion \n"); printf("13. Convert time (s, m, h, d, w, m, y) \n"); @@ -256,4 +256,4 @@ void unitConverterMode() { printf("\nEnter your choice (Exit with 0): "); scanf("%d", &choice); getValue(choice); -} \ No newline at end of file +}