Muhammad_Farroos

double to String

Feb 8th, 2021
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. fun double(a: Double, b: Double): String{
  2. val calculate = a + b
  3. val result = calculate.toString()
  4. return result
  5. }
  6.  
  7.  
  8. fun main() {
  9. val angka = double(1.2 , 3.4)
  10. print(angka)
  11. }
Add Comment
Please, Sign In to add comment