Home Segments Index Top Previous Next

557: Practice

Implement -, *, and / methods for weights such that your methods can handle the following examples:

3gm - 2gm       <-- Answers 1gm 
3gm * 2         <-- Answers 6gm 
3gm / 2         <-- Answers (3/2)gm