HelloWorld, StringTemplates, Variables

This commit is contained in:
wandoubaba 2024-08-10 19:38:18 +08:00
commit 0c2ba0586d
4 changed files with 26 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
out
.idea

View File

@ -0,0 +1,5 @@
package io.kotlinstudy.tour
fun main() {
println("Hello, Kotlin")
}

View File

@ -0,0 +1,9 @@
package io.kotlinstudy.tour
fun main() {
val customers = 10
println("There are $customers customers")
println("There are ${customers + 1} customers")
}

View File

@ -0,0 +1,10 @@
package io.kotlinstudy.tour
fun main() {
val popcorn = 5
val hotdog = 7
var customers = 10
customers = 8
println(customers)
}