Question: Consider the following code that accepts two positive integer numbers as inputs. 1. read x, y 2. Result 1= 1 3. Result 2 = 1

 Consider the following code that accepts two positive integer numbers asinputs. 1. read x, y 2. Result 1= 1 3. Result 2
= 1 4. counter = 1 5. repeat 6. result 1= result]*x 7. counter = counter + 1 8. Until (counter > y)

Consider the following code that accepts two positive integer numbers as inputs. 1. read x, y 2. Result 1= 1 3. Result 2 = 1 4. counter = 1 5. repeat 6. result 1= result ]*x 7. counter = counter + 1 8. Until (counter > y) 9. counter = x 10. Do while (counter > 0) 11. result 2= result 2*y 12. counter = counter - 1 13. End Do 14. If (result ] > result 2) 15. then print "xy is greater than y"x" 16. else print "yox is greater than x^y" 17. End if 18. EndAssume that the program graph for the above program includes every statement, including the dummyr statements such as 'End If' and 'End', as separate nudes. How many branches are in the program graph ? all 0 b.22 O c. 23 O d.None ofthe above 0 e. None of the above

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 General Management Questions!