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

18
EvenOddDynamic.java Normal file
View File

@@ -0,0 +1,18 @@
// Program to find out the number entered is Even/Odd (Dynamic Method).
import java.util.Scanner;
public class EvenOddDynamic {
public static void main(String[] args) {
int num;
System.out.println("Enter an Integer:");
Scanner input = new Scanner(System.in);
num = input.nextInt();
if (num % 2 == 0) {
System.out.println("Entered number is even.");
}
else {
System.out.println("Entered number is odd.");
}
}
}