Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
fun main(args: Array<String>) {
print("Nhap so thu nhat:")
var a = readLine()!!.toFloat()
print("Nhap so thu hai:")
var b = readLine()!!.toFloat()
var max = Max(a,b)
print("So lon nhat la: $max")
fun Max(a:Float,b:Float):Float{
var max:Float = 0.0f
max = a
max = b
return max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.