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

is assignment operator is arithmatic or not

3 Answers   Infosys,


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

0 Answers  


Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass.

11 Answers   Microsoft,


string reverse using recursion

0 Answers   Mind Tree,


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

0 Answers   HCL,






do u print this format '(((())))'. This brackets is based on user input like 4 or 5 or 6,without using any loop's?

1 Answers   Oracle,


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

0 Answers   CLG,


if we take a number as a char then can we manipulate(add, subtract) on this number

2 Answers  


int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?

4 Answers   TCS,


#include<stdio.h> main() { int i=5; printf("%d",i*i-- - --i*i*i++ + ++i); } tell the answer with correct reason .specially reason is important nt answer ans by turbo c is -39

1 Answers   GameLoft,


difference between spiral and waterfall model

1 Answers  


write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument .

1 Answers   Subex,


Categories