+ 1
What is wrong with this?
i cant seem to get this working. whats wrong? https://code.sololearn.com/c0vuMi2aCO73/?ref=app
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
+ 2
You write the else-if statement in the if statement.
Like this,
if (...){
else if (...)
{}
}
This is right
if()
{}
else if()
{}