Question: A = 8 B = 2 Get A Get B STEP 1 If A or B = 0 Then Set Product to = 0 and
A B
Get A
Get B
STEP If A or B
Then Set Product to and Go To STEP
Else Set Count to and Set Product to and Go To STEP
STEP While Count B
Set Product to Product A
Set Count to Count
End of Loop;
STEP Print the value of Product
STEP Stop
After Iteration :
Count equals Select "Loop Ended"
Product equals Select "Loop Ended"
After Iteration :
Count equals Select "Loop Ended"
Product equals Select "Loop Ended"
After Iteration :
Count equals Select "Loop Ended"
Product equals Select "Loop Ended"
After Iteration :
Count equals Select "Loop Ended"
Product equals Select "Loop Ended"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
