0

I'm a beginner please tell me where is the problem in my code

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

27th Feb 2021, 12:46 PM
Tejas Vishwakarma
4 Answers
+ 2
Tejas Vishwakarma Perhaps you want to perform nested if else statements? If that is the case, then you have to carefully watch and fix your curly brackets. You have to include the inner else statement to prevent multiple 'else' ____________________________ //Syntax (base on your coding style): if { if { ... } else { ... } } else { if { ... } else { ... } } _________________________ I just used indentation for now for better readability and understanding. ADDITIONAL: đŸ”čYou can use the 'else if' keyword if you want to perform an else statement with a specific condition. If you need more explanations, please feel free to ask. Thanks. https://code.sololearn.com/chmKW7Ll8g3r/?ref=app
27th Feb 2021, 1:13 PM
Nicko James Barata
Nicko James Barata - avatar
+ 2
Hi! the first errors that the console throws are that you did not declare the variables a b c
27th Feb 2021, 12:49 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
Thanks to you all 😊 now it's working
27th Feb 2021, 8:15 PM
Tejas Vishwakarma