Why we dont write else() like this?

why we dont write else() like this?
why we dont write else() like this?

hey manav, can you please explain what you want to say ?

Hey Manav, if and else are conditions just like true and false. See its obvious that a condition can either be true or false. So, if i mention the condition for true then the remaining will automatically be false. that’s why we write if(condition), else if(condition) and else i.e. if no other condition is being true then else will be executed.