first commit
This commit is contained in:
12
EvenOdd.java
Normal file
12
EvenOdd.java
Normal file
@@ -0,0 +1,12 @@
|
||||
// Program to find out the number entered is Even/Odd (Static Method).
|
||||
|
||||
public class EvenOdd {
|
||||
public static void main(String[] args) {
|
||||
int num= 25;
|
||||
System.out.println("You enter number: " + num);
|
||||
if(num % 2 == 0)
|
||||
System.out.println(num + " is even");
|
||||
else
|
||||
System.out.println(num + " is odd");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user