Question: A = 5 , B = 4 Get A Get B STEP 1 If A or B = 0 Then Set Product to = 0

A=5,B=4
Get A
Get B
STEP 1 If A or B=0
Then Set Product to =0 and Go To STEP 3
Else Set Count to 0 and Set Product to 0 and Go To STEP 2
STEP 2 While Count B
Set Product to (Product + A)
Set Count to (Count +1)
End of Loop;
STEP 3 Print the value of Product
STEP 4 Stop
After Iteration 1:
 A=5,B=4 Get A Get B STEP 1 If A or B=0

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!