-
-
Save joaoyuki/1fc179ec908f49e97eac283e70f4cb2f to your computer and use it in GitHub Desktop.
Tipos básicos no Kotlin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main(args: Array<String>){ | |
val inteiro: Int = 10; | |
val d: Double = 10.0; | |
val f: Float = 10.0F; | |
val l: Long = 10; | |
val s: Short = 10; | |
val b: Byte = 1; | |
println("Inteiro: " + inteiro); | |
println("Double: " + d); | |
println("Float: " + f); | |
println("Long: " + l); | |
println("Short: " + s); | |
println("Byte: " + b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment