+ 2

Which one is true? else(x>0);{ or else(x>0){ or else;{ ?!please answer me😓

24th Nov 2016, 4:12 PM
Nahal
Nahal - avatar
2 Respostas
+ 4
only else. like if(condition) { //code } else { //code } want to use condition in else use else if(condition)
24th Nov 2016, 4:28 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 2
"else" doesn't take any conditions, If you want so use "else if(condition)" instead . Happy coding:)
24th Nov 2016, 4:35 PM
Rohit Pandey
Rohit Pandey - avatar