+ 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") }

18th Aug 2020, 9:57 AM
Coder Wallah
Coder Wallah - avatar
7 odpowiedzi
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 😂
18th Aug 2020, 10:15 AM
AB💞
AB💞 - avatar
18th Aug 2020, 10:12 AM
Coder Wallah
Coder Wallah - avatar
+ 1
I don't understand
18th Aug 2020, 10:07 AM
Coder Wallah
Coder Wallah - avatar
+ 1
f7f7f7f7f7 language
18th Aug 2020, 10:16 AM
Coder Wallah
Coder Wallah - avatar
0
It is Swift
18th Aug 2020, 9:59 AM
AB💞
AB💞 - avatar
0
Swift
18th Aug 2020, 10:18 AM
AB💞
AB💞 - avatar
0
f7f7f7f7f7 thanks it working i only replace 23 to 15
18th Aug 2020, 10:19 AM
Coder Wallah
Coder Wallah - avatar