0
I'm a beginner please tell me where is the problem in my code
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
+ 2
Hi! the first errors that the console throws are that you did not declare the variables a b c
+ 2
Thanks to you all đ
now it's working



