SHARE
TWEET

Untitled

a guest Oct 18th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun main(args: Array<String>) {
  2.    var num = intArrayOf(1, 3, 2, 6, 8)
  3.    println(num.sum())
  4. }
  5.  
  6. => 20
  7.  
  8. fun main(args: Array<String>) {
  9.    var num = intArrayOf(1, 3, 2, 6, 8)
  10.    println(num.average())
  11. }
  12.  
  13. => 4.0
  14.  
  15. fun main(args: Array<String>) {
  16.    var num = intArrayOf(1, 3, 2, 6, 8)
  17.    println(num.max())
  18. }
  19.  
  20. => 8
  21.  
  22. fun main(args: Array<String>) {
  23.    var num = intArrayOf(1, 3, 2, 6, 8)
  24.    println(num.count())
  25. }
  26.  
  27. => 5
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