You are viewing a single comment's thread. Return to all comments →
You can explicitly conver nTipPercent to double ...
Your code should be
dMealCost * ((double)nTipPercent/100);
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 →
You can explicitly conver nTipPercent to double ...
Your code should be