Program 1
Program 1
Algorithm:
Code:
Import java.util.Scanner;
If (num % 2 == 0) {
System.out.println(“Even”);
} else {
System.out.println(“Odd”);
}
*Variable Description:*
*Output:*
```
Enter a number: 10
Even
```
Or
```
Enter a number: 11
Odd
```
Please note that I’m a text-based AI and cannot generate images. I hope this text-based
representation helps!