Solveeit Logo

Question

Logical Reasoning Question on Mathematics

Perform the following steps:
Step 1: Start with x=1, y=2
Step 2: Replace x by x multiplied by y
Step 3: Replace y by y+1
Step 4: If y=5, then go to Step 6, otherwise go to Step 5
Step 5: Go to Step 2
Step 6: Stop What is the value of x?

Answer

The correct answer is : 24