No video

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

  Рет қаралды 33,182

Software Testing And Automation

Software Testing And Automation

4 жыл бұрын

Here is the link of Full Play List ► bit.ly/2ZGeBFC
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
Link for SDET/QA Interview Full Play List ► bit.ly/3frBpQZ
Link for API Testing Full Play List ► bit.ly/2BY0vHu
Link for Cypress Tutorial Full Play List ► bit.ly/3iMdi2a
Link for Web-services Full Play List ► bit.ly/3bfK0Ef
Link for Protractor Testing Full Play List ► bit.ly/2ztlEIK
Link for Java Programs for Software Testers Full Play List ► bit.ly/2ZGeBFC
Link for Java Tutorial Full Play List ► bit.ly/2Z3tP8L
Link for Selenium Tutorial Full Play List ► bit.ly/3vFR9X5
Link for TestNG Full Play List ► bit.ly/3jGJ3YT
Please subscribe to our channel ► bit.ly/2UIvFcm
and press the bell icon to get updates on latest tutorial.
#softwaretestingandautomation #subhasishmishra #softwaretesting #selenium #apitesting #java #restassuredapiautomation #testng #sql #unix #automationtesting #softwaretestinginterviewquestionandanswers #testautomation

Пікірлер: 31
@sukhmeetkaur6929
@sukhmeetkaur6929 2 жыл бұрын
Thanks a lot sir
@SoftwareTestingAndAutomation
@SoftwareTestingAndAutomation 2 жыл бұрын
Most welcome !! Keep learning and sharing with your friends 😊
@hippl8945
@hippl8945 2 жыл бұрын
im still confused what temp is for,why the condition (temp-sr)!=0,the logic behind(temp+(num/temp))/2; and why temp is num/2 . please teach from ground up as i am dumb
@krishmanjula5739
@krishmanjula5739 2 жыл бұрын
easier approach:note-only integral part int N, i, j, sum, main; N=s.nextInt(); for(i=1; i*i
@sanchayshrivas7749
@sanchayshrivas7749 3 жыл бұрын
You could've explained the logic behind it, but nevertheless, it was informative. Thanks a lot!
@SoftwareTestingAndAutomation
@SoftwareTestingAndAutomation 3 жыл бұрын
You're welcome!
@hippl8945
@hippl8945 2 жыл бұрын
100% ,he just giving the values of the variables , and it doesn't make me understand more..
@yashupadhyay6530
@yashupadhyay6530 3 жыл бұрын
thnx bro
@SoftwareTestingAndAutomation
@SoftwareTestingAndAutomation 3 жыл бұрын
welcome 😊
@thopvideos3588
@thopvideos3588 3 жыл бұрын
kzbin.info/www/bejne/qGrZlHyjqcucjqM Just in 2 lines of code
@mo3tasim_awadh
@mo3tasim_awadh Жыл бұрын
try 1, ArithmeticException. can not divide by 0.
@imyoursunz_3815
@imyoursunz_3815 2 жыл бұрын
Is there another way in the code for square root?
@krishmanjula5739
@krishmanjula5739 2 жыл бұрын
Int n, i; Input n and then follow this loop For(i=1 i*i
@malayswain8158
@malayswain8158 3 жыл бұрын
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.
@SoftwareTestingAndAutomation
@SoftwareTestingAndAutomation 3 жыл бұрын
This program is to find only square root of any number. If you will try to find cube root, need to use different logic. I ll create a separate video on that 😊
@abhibhavyagupta3780
@abhibhavyagupta3780 2 жыл бұрын
How can we find the sqrt of non perfect sqrt numbers such as 10?
@SoftwareTestingAndAutomation
@SoftwareTestingAndAutomation 2 жыл бұрын
You can use the same program.
@abhibhavyagupta3780
@abhibhavyagupta3780 2 жыл бұрын
@@SoftwareTestingAndAutomation ok, thanks🙂
@ejskshrvhshsbdbdbddhdh3yej11
@ejskshrvhshsbdbdbddhdh3yej11 3 жыл бұрын
why i am getting 5 if num = 16
@SoftwareTestingAndAutomation
@SoftwareTestingAndAutomation 3 жыл бұрын
can you recheck the video, make sure you are not missing anything in your program.
@thangmainguyenquyet645
@thangmainguyenquyet645 Жыл бұрын
how about 15, i loop by manual but it is hard, How??
@thangmainguyenquyet645
@thangmainguyenquyet645 Жыл бұрын
can u help me explain the logic , how can you got that
@ojustejadoti7967
@ojustejadoti7967 3 жыл бұрын
Can you please try to upload a video on, how to find squreroot of float number
@SoftwareTestingAndAutomation
@SoftwareTestingAndAutomation 3 жыл бұрын
Same program will work fine, Just use float num or double num in line no 10.
@pinkubose2994
@pinkubose2994 Жыл бұрын
Sir, 9/2 = 4 how ?
@SoftwareTestingAndAutomation
@SoftwareTestingAndAutomation Жыл бұрын
Here we are doing int division which always returns an int (truncated to the nearest int).
@anupamshukla6357
@anupamshukla6357 Жыл бұрын
But you have stored it in an double .
@krishmanjula5739
@krishmanjula5739 2 жыл бұрын
easier approach:note-only integral part int N, i, j, sum, main; N=s.nextInt(); for(i=1; i*i
@isubhanikhan
@isubhanikhan Жыл бұрын
can u send the full program
10 - Java program to copy all elements of one array into another array
8:18
Software Testing And Automation
Рет қаралды 7 М.
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 29 МЛН
UNO!
00:18
БРУНО
Рет қаралды 3,5 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
27 - Java Program to find the duplicate words in a string.
17:07
Software Testing And Automation
Рет қаралды 12 М.
Stop, Intel’s Already Dead! - AMD Ryzen 9600X & 9700X Review
13:47
Linus Tech Tips
Рет қаралды 1 МЛН
BS-10. Finding Sqrt of a number using Binary Search
17:11
take U forward
Рет қаралды 111 М.
20 - Java Program to count the total number of vowels and consonants in a string
11:43
Software Testing And Automation
Рет қаралды 10 М.
Java Program #11 - Find Armstrong Number in Java
11:09
Programming For Beginners
Рет қаралды 17 М.