Swift if-else

var num = 10

if (num == 20) {
print("matched")
}
else if (num>20){
print("greater")
}
else if (num<20){
print("leaser")

}
Previous
Next Post »