+ 1

Why else is coming every time while I run a programme with if, else if, else?

I need this answer

7th Jun 2019, 8:39 AM
Monirul Islam
Monirul Islam - avatar
5 Respostas
0
can you explain a little more?
7th Jun 2019, 8:39 AM
Cat Sauce
Cat Sauce - avatar
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..!
7th Jun 2019, 8:42 AM
Monirul Islam
Monirul Islam - avatar
0
can you give the code?
7th Jun 2019, 8:47 AM
Cat Sauce
Cat Sauce - avatar
0
Sorry, I deleted that code! Okay... later I will give U that...
7th Jun 2019, 8:48 AM
Monirul Islam
Monirul Islam - avatar
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
7th Jun 2019, 12:17 PM
Lexfuturorum
Lexfuturorum - avatar