first commit

This commit is contained in:
2021-04-14 16:00:09 +05:30
commit 430dfcee8b
16 changed files with 574 additions and 0 deletions

12
EvenOdd.java Normal file
View 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");
}
}