This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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: