-1

ASM:

Input the length of a board

Input the length of shelves wanted by the customer

Output the number of shelves that can be cut from the board

Output the number of inches of remaining unusable board

Sample execution:

150             //input board length
44              //Input desired length of shelves
Number of shelves is 3
Inches leftover is 18
Keith
  • 1
  • You don't want the quotient, only the remainder and modulus, which are only different from each other for negative inputs? Your output looks like you want the quotient and remainder, which `div` gives you for unsigned inputs. – Peter Cordes May 12 '22 at 19:39

0 Answers0