please answer in java
Attachments:
Answers
Answered by
1
Answer:
The above code is used to find the square root of a number inputted by the user upto some numbers of terms in loop which is also entered by user.
like if I take x= 3 means to display the output upto three times and every time the loop runs value of 'i' will be incremented by 1
The output will be displayed like this :-
1
4(2*2=4)
9(3*3=1)
and if I take x= 4 , to display output upto 4 times
The output will be displayed like this :-
1
4
9
16
Similar questions