Skip to content

Commit

Permalink
Day 3 Operators
Browse files Browse the repository at this point in the history
  • Loading branch information
lazychip committed Oct 26, 2017
1 parent d24f1e9 commit 7fbafc9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 2 - Operators/Solution.ts
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 7fbafc9

Please sign in to comment.