Converting String Input Into Integer Rules Multiplication