You are viewing a single comment's thread. Return to all comments →
here for rounding you can use Math.round or you can just add 0.5 to total for rounding value like: sout((int)(total + 0.5));
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 →
here for rounding you can use Math.round or you can just add 0.5 to total for rounding value like: sout((int)(total + 0.5));