Recall that integer division produces an integer result. This program introduces a special operator called a cast operator to force the averaging calculation to produce a floatingpoint numeric result. This program also stacks control statements on top of one another ...
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.