0

if statement

In my nested if else statement, 'else' statement is getting executed along with 'if', below is the link to my code, any idea why it is happening? https://code.sololearn.com/cPqTWTVyhY7I/#java

20th Aug 2020, 3:07 PM
Ankur Singh
Ankur Singh - avatar
4 Respuestas
+ 2
if else statement need else.. so it should be if(... else if(... else if(... instead of if(... if(... if(...
20th Aug 2020, 3:13 PM
Rei
Rei - avatar
0
if elif else if elsid elsee ri else emewm ems eis skdnd ej ekie ekdm
20th Aug 2020, 5:06 PM
Liang Aidan
Liang Aidan - avatar
0
Thanks bro, that solved it Rei
23rd Aug 2020, 10:54 AM
Ankur Singh
Ankur Singh - avatar
0
Thanks bro Liang Aidan
23rd Aug 2020, 10:55 AM
Ankur Singh
Ankur Singh - avatar