C++ · Variables, types and arithmetic
An average of whole numbers is rarely whole, and C++ decides whether to keep the fraction before it stores the answer.