SHARE
TWEET

Kotlin: File 1 Basic

stevennathaniel Sep 24th, 2019 163 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top