fun main(args: Array<String>) { var x:Int=10 println("The value of X is--"+doubleMe(x)) } fun doubleMe(x:Int):Int{ return 2*x; }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more