Skip to content

Commit

Permalink
Memperbarui Kodingan penambahan
Browse files Browse the repository at this point in the history
  • Loading branch information
JosafatFebrian authored Mar 3, 2022
1 parent a83bd5d commit 0e60ed2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plus.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fun main() {
print("masukan angka utama")
val number1 = readLine()?.toInt()
println("$number1 ingin di tambah dengan angka apa?")
val number2 = readLine()?.toInt()

var result : Int? = (number2?.let { number1?.plus(it) })
println("$number1 + $number2 = $result" )
}

0 comments on commit 0e60ed2

Please sign in to comment.