Using else instead of else if

if we use else instead of else if
for eg if i write else(n>60){
}
instead of else if(n>60){
}
it is showing an error stating that left side of assingnment operator should be variable

you can’t give condition in else statement. because condition on which else work is in if block. else execute when your if condition fail. eg.
if(n<50){}
else(n>50){} always show an error to you in else statement.or there are chances u provide 50 as input .
u have to use it like
if(n<50){}
else if(n==50){}
else(n>50){}
this dont show an error.
you have to understand that if else work together on one condition . to use more than one condition we use else if .