Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
My script1
//Kotlin 1.1 fun main(args : Array<String>) { val sco1 = 12.3 val sco2 = 6.toDouble() val tot = sco1 + sco2 val z = Math.pow( sco2.toDouble(), 2.toDouble()) val percento = (sco2*10/100).toDouble() fun perc(x: Double, y: Int): Double{ return x*y/100 } fun esp(e: Double, f: Double): Double{ return Math.pow(e, f) } val percento2 = perc(6.0, 30) println("Totale: $tot") println("Esp: $z") println("%: $percento") println("%: $percento2") println("Esp: " + esp(7.0, 2.0)) // println("${score + sco}") }
run
|
edit
|
history
|
help
0
KotlinSessionVII#IS_OPERATOR
Kotlin
GenerateFibonacci47
KotlineMerg
validation testing
Kotlin!
Aula 1 - Orientacao a Objetos - Mao na Massa
degerliilkornek
Fibonacci in Kotlin
Kotlin