Question: What is the final value of count after completing the following instructions (automatically proceed to the next step when done unless instruction states otherwise)?
What is the final value of "count" after completing the following instructions (automatically proceed to the next step when done unless instruction states otherwise)? Step 1: Obtain 3 numbers x, y and count. They are all 0. Step 2: If x is lesser than 4, go to step 3. Otherwise go to step 8. Step 3: If y is lesser than 5, go to step 4. Otherwise go to step 6. Step 4: Increase count by 1. Increase y by 1. Step 5: Go back to step 3. Step 6: Increase x by 1. Set y to 0. Step 7: Go back to step 2. Step 8: END
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
