summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files 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;
}