diff --git a/2 - Operators/Solution.ts b/2 - Operators/Solution.ts new file mode 100644 index 0000000..c26b654 --- /dev/null +++ b/2 - Operators/Solution.ts @@ -0,0 +1,8 @@ +let temp: string = "meal cost calculate"; +let mealCost: number = 2000; +let tipPercent: number = 10; +let taxPercent: number = 20; +let tip = tipPercent * mealCost / 100; +let tax = taxPercent * mealCost / 100; +let totalCost = tip + tax + mealCost; +console.log("The total meal cost is %i dollars.", totalCost);