SATYAM technical

10 Let R=3
20 Let R=R*3
30 Let J=R*3
40 Let K=J*3
50 print K-J-R
if R<120 return to 20
else
exit. the above question was asked in last 4 interviews of SATYAM. this model is same but not exactly.

Questions by vigneshkumar1988   answers by vigneshkumar1988

Showing Answers 1 - 3 of 3 Answers

rajendranit

  • Dec 19th, 2010
 

10 Let R=3
20 Let R=R*3
30 Let J=R*3
40 Let K=J*3
50 print K-J-R
if R<120 return to 20
else
exit.
first r=3
then R=3*3    (R=9)
then J=9*3
then K=27*3
if R<120           //so r is less than 120 bcoz Ris 9
it will return the value 20



  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions