09 - Java program to find square root of a Number without sqrt method

preview_player
Показать описание

Here we will learn a Java program to find square root of a Number without sqrt method.

A square root of a number is ..... a value that can be multiplied by itself to give the original number.
A square root of 9 is ...... 3, because when 3 is multiplied by itself we get 9

Additional Info

and press the bell icon to get updates on latest tutorial.

#softwaretestingandautomation #subhasishmishra #softwaretesting #selenium #apitesting #java #restassuredapiautomation #testng #sql #unix #automationtesting #softwaretestinginterviewquestionandanswers #testautomation
Рекомендации по теме
Комментарии
Автор

You could've explained the logic behind it, but nevertheless, it was informative. Thanks a lot!

sanchayshrivas
Автор

try 1, ArithmeticException. can not divide by 0.

motasim_awadh
Автор

Is there another way in the code for square root?

imyoursunz_
Автор

looks like you have hard coded only for square root no changes can be done if we want to know the cube root kindly explain us using binary search algorithm method.

malayswain
Автор

How can we find the sqrt of non perfect sqrt numbers such as 10?

abhibhavyagupta
Автор

easier approach:note-only integral part
int N, i, j, sum, main;
N=s.nextInt();
for(i=1; i*i<=N; i++)
{


}
System.out.println(i-1);

krishmanjula
Автор

how about 15, i loop by manual but it is hard, How??

thangmainguyenquyet
Автор

Can you please try to upload a video on, how to find squreroot of float number

ojustejadoti