div=: 4 : 0
p=.x(>:@-&#)y
p({.;}.)x%.|:((p,#x)$y,p$0),(=/ (-#x)&{.)~}.i.#y
)x is divided by y, quotient and remainder in boxes. Can be written in several ways.
Ralph Selfridge ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
