This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
For some reason I did a bunch of these in the waning days of my COBOL life, and just added divisor-1 before dividing. This linecount and pagecount case came up for a character mode help system. For ints: