Kotlins sqrt in Sololearn | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Kotlins sqrt in Sololearn

How can I compute sqrt of a number in Kotlin? Please provide a oneliner

16th May 2018, 7:32 PM
Oma Falk
Oma Falk - avatar
6 Answers
+ 6
not needed to import java.lang.Math.* just see this same example https://code.sololearn.com/clUvmKv6JO8X/?ref=app
17th May 2018, 10:21 AM
Nitish kumar jha
Nitish kumar jha - avatar
+ 5
Jay Matthews 😘😘😘😘😘
17th May 2018, 3:28 AM
Oma Falk
Oma Falk - avatar
+ 3
please mention Jay Mathew as a best answer I am just improve there code. and for kotlin question you can ask from John well(MOD)sir he can give you best answer.
17th May 2018, 11:20 AM
Nitish kumar jha
Nitish kumar jha - avatar
+ 2
nitish kumar jha that means kotlin.lang is onboard right? do u know kotlin version on SL?
17th May 2018, 10:28 AM
Oma Falk
Oma Falk - avatar
+ 2
nitish kumar jha there are many ways to say thank you and yes..John is very far with Kotlin
17th May 2018, 12:26 PM
Oma Falk
Oma Falk - avatar
+ 1
Jay Matthews one more question: I saw kotlin.lang.math . U use java library. It is a question of kotlin version I think. right which version is on SL?
17th May 2018, 10:09 AM
Oma Falk
Oma Falk - avatar