0

Switch State example

https://code.sololearn.com/cUEbGbqnr4TT Help! can anyone tell me what should i correct in this code, please?

24th Jan 2022, 5:43 PM
Rama.S
Rama.S - avatar
3 Antworten
+ 1
Declare day variable of int type and take input into that, before using it in switch argument..
24th Jan 2022, 5:46 PM
Jayakrishna 🇮🇳
+ 1
As already said, you should declare your "day" variable first and initialize it before using
24th Jan 2022, 8:57 PM
Dario Gomes
Dario Gomes - avatar
0
Got it, thanks!
25th Jan 2022, 10:24 AM
Rama.S
Rama.S - avatar