Question: A multiplication problem is provided as a string using the format 'x times y'. Extract the multiplicand x and multiplier y from inputString, and then
A multiplication problem is provided as a string using the format 'x times y'. Extract the multiplicand x and multiplier y from inputString, and then assign multResult with the product. Ex: If inputString is '4 times 3', then multResult is 4 * 3, or 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
