+ 3
New in java dont know where the error is?
public class IfElse{ public static void main(String[] args) { //defining a variable int number=13; //Check if the number is divisible by 2 or not if(number%2==0){ System.out.println("even number"); }else{ System.out.println("odd number"); } } }
10 Respuestas
+ 2
Tell your excepted output because there is neither syntax nor logical errors
+ 5
[No Name] please use respect amongst other community members ..
They overtime as you get to know them can help you with questions and answers as they arise in your growth.
+ 1
move the last } a little left then see
0
The code doesn't consists of any errors
0
Ok thanku 🙂
0
Hi