diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ #include <stdio.h> #include <stdlib.h> #include <math.h> +#include "config.c" // Definitions: #define lessthan < #define print printf @@ -14,7 +15,7 @@ int main(int argc, char* argv[]) { // Does tax math: float numInput = atof(input); float tax = numInput * 0.06; - float total = numInput + tax; + float total = numInput + percent; total = round((total * 100)) / 100; // Prints total to terminal: |