From 93799cb80df74bce1c1704cd80361d1ce11254e0 Mon Sep 17 00:00:00 2001 From: Skiz Date: Sun, 15 Sep 2024 17:28:08 -0400 Subject: Fixed two errors, fix error message later --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 4285b1c..2a2317d 100644 --- a/src/main.c +++ b/src/main.c @@ -14,15 +14,15 @@ int main(int argc, char* argv[]) { char* input = argv[1]; // Does tax math: float numInput = atof(input); - float tax = numInput * 0.06; - float total = numInput + percent; + float tax = numInput * percent; + float total = numInput + tax; total = round((total * 100)) / 100; // Prints total to terminal: print("$%.2f \n", total); exit: - print("No input given,\nplease input the price of your product.\n"); + //print("No input given,\nplease input the price of your product.\n"); return 0; } -- cgit v1.2.3