Consider the following steps :
1. Put x = 1, y = 2
2. Replace x by xy
3. Replace y by y +1
4. If y = 5 then go to step 6 otherwise go to step 5.
5. Go to step 2
6. Stop Then the final value of x equals
1. x=1 ; y=2
2. x=2 ; y=3
3. x=6 ; y=4
4. x=24 ; y=5
Hence when y=5 , x will be 24
Create a FREE account and get: