CAT 1990 Question Paper Question 18

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 Formulas and shortcuts PDF
  • 30+ CAT previous papers with solutions PDF
  • Top 500 CAT Solved Questions for Free

Comments
cracku

Boost your Prep!

Download App