Advertisement
stevennathaniel

Kotlin: File 1 Basic

Sep 24th, 2019
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.25 KB | None | 0 0
  1. /**
  2. *
  3. *
  4. * package steven.file3
  5.  
  6. * import kotlin.text.*
  7.  
  8. * fun sum(a: Int = 3, b: Int = 5): Int {
  9.  
  10. *    return a + b
  11. * }
  12.  
  13.  
  14. */
  15.  
  16. fun main() {
  17.  
  18.     val a: Int = 3
  19.  
  20.     val b: Int = 5
  21.  
  22.     val jumlah: Int = a + b
  23.  
  24.     println(jumlah)
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement