Muhammad_Farroos

return toString

Feb 7th, 2021 (edited)
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. /**
  2. * You can edit, run, and share this code.
  3. * play.kotlinlang.org
  4. */
  5.  
  6. fun hitung(a: Int, b: Int): String{
  7. val jumlah = a + b
  8. val sum = jumlah.toString()
  9. return sum
  10. }
  11.  
  12.  
  13. fun main() {
  14. val sum = hitung(20,20)
  15. print(sum)
  16. }
Add Comment
Please, Sign In to add comment