Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
fun main(args: Array<String>) {
println("Hello, World!")
val a: Int = 10000
val d: Double = 100.00
val f: Float = 100.00f
val l: Long = 100000000004
val s: Short = 10
val b: Byte =1
val letter: Char//defining a variable
letter = 'c' //Assigning a value to it
println("$letter")
println("Your Int Value is "+a);
println("Your Double value is" +d);
println("Your Float value is"+f);
println("Your Long valule is"+l);
println("Your Short value is"+s);
println("Your Byte value is"+b);
}
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more