You are viewing a single comment's thread. Return to all comments →
I put it all in one line. That way I wouldn't need to use extra variables. This is in C#.
Console.WriteLine(Math.Round((meal_cost*(tip_percent/100f))+(meal_cost*(tax_percent/100f))+meal_cost));
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 →
I put it all in one line. That way I wouldn't need to use extra variables. This is in C#.