sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2;
Find the value of x?

Answers were Sorted based on User's Feedback



sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?..

Answer / soundararajan krishnan

I think the actual question may be like
sqrt(x+sqrt(x+sqrt(x+sqrt(x+...))))=2;
Find the value of x?

When we solve this the value of x is 2.

Let A = sqrt(x+sqrt(x+sqrt(x+sqrt(x+...)))) ------(1)
We can write this as,

A = sqrt (x+A) ------(2) using formula (1)

Since A = sqrt(x+sqrt(x+sqrt(x+sqrt(x+...)))) = 2,

we can write the equation (2) as,

2 = sqrt(x+2)

square this equation,

4 = x+2

Then x = 2.

Is This Answer Correct ?    20 Yes 4 No

sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?..

Answer / karthik

the value of x=4;
start from the innermost sqrt
1.sqrt(4)=2;
2.sqrt(4+2)=sqrt(6)=2// since ans is (2 root 3)it will
consider only 2 and left root 3
3.sqrt(4+2)=sqrt(6)=2

in the last root (sqrt(4+2))= ans is 2 root(3) just elimnate
root(3)

thus the remaining ans is 2

there fore X=4////

Is This Answer Correct ?    13 Yes 13 No

sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?..

Answer / chandan

Here x will be 2.028530
only then the exact value of
the given expression will be 2.
Because if we pass int value &
it will handle like float value
otherwise its o/p will be 0.So
here we have to use %f in the
printf statement to get actual
value of given expression.

Is This Answer Correct ?    0 Yes 2 No

sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?..

Answer / rukmanee

the value of x=1

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More C Interview Questions

change to postfix a/(b+c*d-e)

8 Answers   Value Labs,


what is difference between array,strutter,union and pointers

3 Answers   CTS, Lovely Professional University, Mannar Company,


write a program without using main function?

2 Answers   TCS,


pascal triangle program

2 Answers  


What are the different types of control structures in programming?

0 Answers  






What is the output of below code? main() { static in a=5; printf("%3d",a--); if(a) main(); }

4 Answers   Infosys, TCS,


Write a program to compute the following 1!+2!+...n!

4 Answers  


Why c is called procedure oriented language?

0 Answers  


How does C++ help with the tradeoff of safety vs. usability?

1 Answers  


34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?

3 Answers  


program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5

8 Answers   Infosys,


write a program to find the number of even integers and odd integers in a given array in c language

13 Answers   IAI Cameroun, NIIT, Olive Tech, QIS,


Categories