Mu sigma
Company
Logical Reasoning
Logical Sequences
Below is a pseudo code Read x
While(x < 60)
write x
x = x*3
The last number in the sequence is 54, what has the user entered as the initial value of x
Read Solution (Total 20)
-
- Final Value Is 54. And In Every Loop The Result Multiplied By 3. So By Backward Approach 54/3=18, 18/3=6, 6/3=2.
So, The Starting Value Is 2 - 9 years agoHelpfull: Yes(12) No(1)
- 54/3=18, 18/3=6, 6/3=2
=2 - 9 years agoHelpfull: Yes(1) No(1)
- since the final value is 54 and approaching the question from back we get 18(=54/3) as just previous result and so 6(=18/3) and hence we are left with 2=(6/3) as our initial value.
- 9 years agoHelpfull: Yes(1) No(1)
- 2 is d answer
- 9 years agoHelpfull: Yes(0) No(0)
- 2 is tha ans.
- 9 years agoHelpfull: Yes(0) No(0)
- x was 54 before breaking.
so x=54/3
hence initial value of x is 18 - 8 years agoHelpfull: Yes(0) No(1)
- if user enters -2
x=2*3=6
x=6*3=18
x=18*3=54
x=54
- 8 years agoHelpfull: Yes(0) No(0)
- 2 is the answer.
as 54 is the final value of x.
previous value will 54/3.
and same procedure will be followed untill we get a number not divisible by 3.
54/3=18
18/3=6
6/3=2. - 8 years agoHelpfull: Yes(0) No(0)
- ans is 2,
as when 2 is entered, condition becomes true, then x=6 will be the value of 6.. Likewise then x=18, after that finally x= 54. - 8 years agoHelpfull: Yes(0) No(0)
- last number of sequence is 54, therefore
54/3=18
18/3=6
6/3=2.... is the initial value. - 8 years agoHelpfull: Yes(0) No(0)
- 54/3=18
So x=18 - 8 years agoHelpfull: Yes(0) No(0)
- 18
because only when 18 is multiplied with 3 we can get 54 - 7 years agoHelpfull: Yes(0) No(0)
- 54/3=18
18/3=6
6/3=2
ANS : 2 - 7 years agoHelpfull: Yes(0) No(0)
- 2 as 2*3=6 6*3=18 18*3=54
- 7 years agoHelpfull: Yes(0) No(0)
- 2
as 2 - 7 years agoHelpfull: Yes(0) No(0)
- There is no bracket enclosing both the statements. By default only "write x" will be encountered for an infinite number of times. Therefore the starting or the initial value would be 54.
- 7 years agoHelpfull: Yes(0) No(0)
- 2 is the answer
- 6 years agoHelpfull: Yes(0) No(0)
- 54/3=18
18/3=6
6/3=2
hence 2 - 6 years agoHelpfull: Yes(0) No(0)
- 6
x=6
x=6*3=18;
x=18*3=54;
So,the initial value of x is 6. - 6 years agoHelpfull: Yes(0) No(0)
- 2
ewrewrewrewre - 5 years agoHelpfull: Yes(0) No(0)
Mu sigma Other Question