You are viewing a single comment's thread. Return to all comments →
C# code: double usertips =meal_cost /100.0 * tip_percent; double usertax = tax_percent/100.0 * meal_cost;
double mealtotalcost = meal_cost +usertips +usertax; Console.WriteLine(Math.Round(mealtotalcost));
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
C# code: double usertips =meal_cost /100.0 * tip_percent; double usertax = tax_percent/100.0 * meal_cost;