+ 5

[CHALLENGE] Write A Code That Calculates and Prints The Square Root Of A Number Without Using The Built-In Function or **.5!

Title says it all, try to write a code that calculates and prints the square root of a number without using the built-in function or using to the 1/2 power. My code is below for reference! (There may be a much better solution than mine but this is what I have!) Any language welcome! Mine is in Python. Try to do: At least 5 decimal places, 10 places, 15 You may use the built-in squared function in your code and to check your solution! https://code.sololearn.com/cv9nDlouI2uI/?ref=app

14th Apr 2018, 3:56 AM
Nathan Lewis
Nathan Lewis - avatar
9 Réponses
+ 20
https://code.sololearn.com/cgpNcEa2jIXa/?ref=app
15th Apr 2018, 7:45 AM
LukArToDo
LukArToDo - avatar
15th Apr 2018, 10:03 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 15
#My try in Python ✌️ (1 Liner) print(float(input())**.5)
14th Apr 2018, 6:40 AM
🌛DT🌜
🌛DT🌜 - avatar
+ 5
https://code.sololearn.com/cJCYuZOgG3vC/?ref=app
14th Apr 2018, 9:11 PM
VcC
VcC - avatar
16th Apr 2018, 11:29 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 2
https://code.sololearn.com/c2Sh2DDR7qcC/#cs
16th Apr 2018, 6:54 PM
ODLNT
ODLNT - avatar
+ 1
Nice DT! I should have specified that I wanted you to try and not use the 1/2 power as well! I’ve updated my Challenge
14th Apr 2018, 7:10 AM
Nathan Lewis
Nathan Lewis - avatar
19th Apr 2018, 7:53 AM
Даниил Горелов
Даниил Горелов - avatar