+ 1
Why else is coming every time while I run a programme with if, else if, else?
I need this answer
5 odpowiedzi
0
can you explain a little more?
0
Sometime I run a programme with else and I saw its come with else condition when I give a number which is not the condition under else condtion..!
0
can you give the code?
0
Sorry, I deleted that code! Okay... later I will give U that...
0
Else doest need any conditions
Else runs when no other condition(if or else if) fits.
So if you want a patacular output for a specific number use an elseif statement