input and output tables multiplying and dividing