You are viewing a single comment's thread. Return to all comments →
double result; double tip=(meal_cost*tip_percent)/100; double tax=(tax_percent*meal_cost)/100; result=meal_cost+tip+tax; int round_val=(int)Math.round(result); System.out.println(round_val);
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 →
* Simple java code*