Help me detect the error in switch case statement? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Help me detect the error in switch case statement?

https://code.sololearn.com/czcE7rp2UKbK/?ref=app

8th May 2020, 5:08 PM
Basudev paul
Basudev paul - avatar
2 Antworten
+ 2
You don't need break statement for if ,it will work same without it and it will throw error anyway,also you are assigning not comparing(==) Also last closing Curly brace missing
8th May 2020, 5:20 PM
Abhay
Abhay - avatar
8th May 2020, 5:21 PM
BroFar
BroFar - avatar