We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Try changing "else if(a==9)" to just an else statement because if/else chains always need to end with an else statement to default to if no other case is true.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
For Loop
You are viewing a single comment's thread. Return to all comments →
Try changing "else if(a==9)" to just an else statement because if/else chains always need to end with an else statement to default to if no other case is true.