""" Also in Java, the operator % can be used to return the remainder of a division calculation. For example, the operator works like this: int remainder = 5 % 2; // prints 1, because 5 / 2 == 2, remains 1. System.out.println(remainder); The same operator can be used to conveniently test whether a number is even: if the remainder of the division by two is one, the number is odd. Write a program that asks the user for an integer and then prints the information whether the number is odd or even, as shown in the example output below. Thus, below is shown the execution of the program in duplicate: Example output 1: Give a number: 8 Number 8 is even Example output 2: Give a number: 3 Number 3 is odd """ import java.util.Random; import java.util.Scanner; public class Test{ public static void main(String[] args){ final Random r = new Random(); Scanner reader = new Scanner(System.in); System.out.print("Give a number: "); int num = Integer.valueOf(reader.nextLine()); int remainder = num % 2; if (remainder == 1) { System.out.println("Number "+num+" is odd"); } else { System.out.println("Number "+num+" is even"); } } } '''Testing with input 8 Give a number: 8 Number 8 is even Testing with input 3 Give a number: 3 Number 3 is odd Testing with input 11 Give a number: 11 Number 11 is odd Testing with input 6 Give a number: 6 Number 6 is even Testing with input 927 Give a number: 927 Number 927 is odd '''