Created
February 6, 2018 02:57
-
-
Save TranNgocMinh/30154d581997067835fdf9791e04e001 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
if(a>b) | |
max = a | |
else | |
max = b | |
return max | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment