Question: Question 2: Multiply two numbers that are entered by the user using a for loop. Ask user to input 2 numbers a and b and

 Question 2: Multiply two numbers that are entered by the user

Question 2: Multiply two numbers that are entered by the user using a for loop. Ask user to input 2 numbers a and b and find a*b. Repeat the multiplication 3 times total. If the user enters a=0 or b=0, display The answer is O when one of the multipliers is 0.' and skip to the next operation. (15 points) Example: 1st number: 1 2nd number: 4 product = 4 1st number: 5 2nd number: 0 The answer is O when one of the multipliers is 0. 1st number: -3 2nd number: 7 product = -21

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!