Question 18

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

Solution

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:

  • All Quant CAT complete Formulas and shortcuts PDF
  • 35+ CAT previous papers with video solutions PDF
  • 5000+ Topic-wise Previous year CAT Solved Questions for Free

cracku

Boost your Prep!

Download App