diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |