Answer:
public static void printMultiples(int n, int max){
for (int i=1; i<=max; i++){
if(i%n == 0)
System.out.println(i);
}
}
Explanation:
Create a method called printMultiples that takes two parameters n and max
Inside the method, create a for loop that iterates from 1 to max. If i, a number between 1 and max, % n is equal to 0, that means the number is a multiple of n, print the number.
Answer:
In a buffer
Explanation:
We can define a buffer as a temporary holding area for data between the various devices and the CPU make I/O synchronization especially if there are multiple devices attempting to do I/O at the same time.
Items stored at the buffer helps to reduce the The incompatibilities in speed between the various devices and the CPU.
Answer:
You can reverse the direction of a ratchet by hitting with an equal or higher amount of force it came at you with.
Explanation: