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));
}
}
}
}
Answer:
1. A
2. B
3. C
hope this helps in some way
C. A relay is an electrical switch that works through electromagnetism.
Answer:
Please see the attached file for complete Answer.
Explanation:
Answer:
False
Explanation:
Methods inherited from the base/super class can be overridden only if behvior is close enough. The overridding method should have same name, type and number of parameters and same return type.