- 2
Help me
fun main(args: Array<String>) { var hour = readLine()!!.toInt() var time = 24 var hour=18 if (time>hour) print("Closed") } {if (time<hour) print("Open") }
2 ответов
+ 7
fun main(args: Array<String>) {
var hour = readLine()!!.toInt()
var time = 18
// var hour=18
if (time<=hour){
print("Closed")
}
if (time>hour)
print("Open")
}
+ 1
For example:
https://code.sololearn.com/c1p2K5pKrNv4/?ref=app