Answer :
Answer:
Explanation:
The following program is written in Java. It asks the user for the two inputs and then uses those inputs in a for loop. The loop goes through each number checking to see if it is even or odd. If it is even it prints out Even: and the number after multiplying it by 3. If it is odd it prints out Odd: and the number after adding 10 to it. The output can be seen in the attached picture below.
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter number 1: ");
int num1 = in.nextInt();
System.out.println("Enter number 2:");
int num2 = in.nextInt();
for (int x = num1; x <= num2; x++) {
if ((x % 2) == 0) {
System.out.println("Even: " + (x*3));
} else {
System.out.println("Odd: " + (x+10));
}
}
}
}
