+ 1

What is wrong with this?

i cant seem to get this working. whats wrong? https://code.sololearn.com/c0vuMi2aCO73/?ref=app

28th Jun 2018, 7:39 AM
Captain Fach
Captain Fach - avatar
3 Réponses
+ 7
yours else if and else conditions are nested in if. these are not nested without another if. your code have same level conditon not nested. https://code.sololearn.com/cFIdK4z23oU9
28th Jun 2018, 9:01 AM
Lakhvir Singh
Lakhvir Singh - avatar
+ 2
You write the else-if statement in the if statement. Like this, if (...){ else if (...) {} } This is right if() {} else if() {}
28th Jun 2018, 8:16 AM
Disvolviĝo;
Disvolviĝo; - avatar