Kotlin | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
- 4

Kotlin

fun main(args: Array<String>) { var hour = readLine()!!.toInt() var taim=18 if (taim<=17) { print("Open") } else (taim<19){ print("Closed") }

20th Jun 2021, 7:20 PM
время Ч
4 ответов
+ 5
fun main(args: Array<String>) { var hour = readLine()!!.toInt() //var taim=18 if (hour<=18) { print("Open") } else { print("Closed") }
21st Jun 2021, 1:04 AM
Simba
Simba - avatar
0
What is this?
20th Jun 2021, 8:21 PM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
0
You create a program for a security system that opens / closes the door depending on the time of day. Your program needs to take the time of day as input (0 to 24) and output "Open" if it is less than or equal to 18, and "Closed" otherwise. Example Input Data: 21 Sample Output Data: Closed
20th Jun 2021, 9:28 PM
время Ч
0
Not
21st Jun 2021, 1:39 PM
время Ч