INPUT FILE: ld.in
OUTPUT FILE: ld.out
Given 2 non-negative numbers a, b (a <> 0; a, b
<= 30000) print out the gory detail of the long division involved in computing
b/a (as would be done by hand or in the real ECOO).
See the output format below; the dividing line should have as many characters
as b. Different outputs should be separated by a blank line.
"-1 -1" denotes the end of input.
Sample Input File
2 4 14 285 -1 -1
Output for Sample Input
2 2|4 -4 - 0 020 14|285 -0 --- 28 -28 --- 05 -0 --- 5