Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Logical Reasoning :: Logical Problems - Discussion

Home > Logical Reasoning > Logical Problems > MCQs Questions Discussion

8 / 58

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

A2

B5

C3

D4

Answer: Option (Login/Signup)

Show Explanation

Given Last value int seq. = 54.

and in every Loop result multiplied By 3.

So By Backward Approach

54/3=18 => 18/3=6

=> 6/3=2.

So, The Starting Value Is 2

Asked In :: Mu-Sigma

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here