Examples · learn/04-control · 96 of 339
if
tin run examples/learn/04-control/if.tinfn main() {
let temperature = 31
if temperature > 30 {
print("hot")
} else if temperature > 15 {
print("mild")
} else {
print("cold")
}
} Examples · learn/04-control · 96 of 339
tin run examples/learn/04-control/if.tinfn main() {
let temperature = 31
if temperature > 30 {
print("hot")
} else if temperature > 15 {
print("mild")
} else {
print("cold")
}
}