0

Y these switch is not working

If stamen is working but not swich

31st Dec 2017, 6:45 AM
Rak Kalam
Rak Kalam - avatar
8 Réponses
+ 9
insert code here please.
31st Dec 2017, 6:51 AM
jay
jay - avatar
+ 9
hahaahha language! hahaha! come on, edit that out please I know various languages, enough that I can wing it :))
31st Dec 2017, 6:52 AM
jay
jay - avatar
+ 9
remove the swear and I might try
31st Dec 2017, 6:54 AM
jay
jay - avatar
+ 8
First thing I see is in your case you have name== try just having case "Mani": name=="string" will result in a boolean value being returned
31st Dec 2017, 7:00 AM
jay
jay - avatar
+ 1
Do u know swift dude
31st Dec 2017, 6:52 AM
Rak Kalam
Rak Kalam - avatar
0
import Foundation let name = readLine() var name1 = String(name!) if (name1=="kalam"){ print("kalam")} else{ print("f***")} switch name1 { case name1=="kalam": print("kalam") case (name1=="mani"): print("mani") default: print ("lara") }
31st Dec 2017, 6:51 AM
Rak Kalam
Rak Kalam - avatar
0
solve it
31st Dec 2017, 6:53 AM
Rak Kalam
Rak Kalam - avatar
0
solve it send me back the code
31st Dec 2017, 6:55 AM
Rak Kalam
Rak Kalam - avatar