+ 2
On which language this code support
if hour < 12 { print("Good Morning") }else if hour < 17 { print("Good Morning") }else if hour < 21 { print("Good Morning") }
7 Antworten
0
var hour=23
if hour<12{
print("Good morning")
}else if hour>=12&&hour<17{
print("Good afternoon")
}else if hour>=17&&hour<20{
print("Good evening")
}else{
print("Good Night")
}
//try this it is working in my machine 😂
+ 2
Md. Nasif-ur-Rahman Rimon
Not support
+ 1
I don't understand
+ 1
f7f7f7f7f7 language
0
It is Swift
0
Swift
0
f7f7f7f7f7 thanks it working
i only replace 23 to 15