Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * You can edit, run, and share this code.
- * play.kotlinlang.org
- */
- fun example(a: Int,b: String,c: Double): Int{
- val convert = b.toInt()
- val sum = a + convert + c
- val total = sum.toInt()
- return total
- }
- fun main() {
- val result = example(2,"3",2.2)
- print(result)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement