1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Serhud [2]
3 years ago
15

Complete the method, print Multiples(), that takes in a positive integer n, and another positive integer, max. Print out all the

multiples of n that are less than or equal to max. Print each multiple on a separate line. For example, if the method is called with n
Computers and Technology
1 answer:
musickatia [10]3 years ago
3 0

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.

You might be interested in
- Truncate command response time is ______ as comparedto Delete command.
MArishka [77]

Answer:

c. Better

Explanation:

Truncate command response time is better as compared to Delete command.

8 0
3 years ago
Required by the Fair and Accurate Credit Transaction Act of 2003 (FACTA), which of the following is an anti-identity theft rule
oksian1 [2.3K]

Answer:

Red Flags Rule

Explanation:

The Red Flags Law relies upon commercial banks and investors to put red flags in order to identify and deter identity fraud. Institutions must have a documented policy for the protection of fraud to control the organization and secure their clients.

Other options are incorrect because they are not related to the FACTA that is anti-identity theft rule.

3 0
3 years ago
Question 2 of 10
inn [45]

Answer:

b

Explanation:

I really don't but I hope its correct

8 0
2 years ago
When researching using the internet, you should always ensure that the information you find on a website is ________.
Schach [20]

The answer is the last choice, "Credible."


Fun and entertaining websites are good for your personal time, but not for research. Persuasive websites may seem convincing, but usually persuade through emotions rather than facts. Therefore, you should make sure the information/website is credible and is supported by facts and reliable individuals.

4 0
4 years ago
. Which of the following are container elements?
lions [1.4K]
It’s c cba to explain
4 0
3 years ago
Read 2 more answers
Other questions:
  • We discussed in class the differences between Ruby and a language like Java. Based on our discussions, when do you feel it would
    11·1 answer
  • Where can you make changes to AutoCorrect?
    14·2 answers
  • FREE POINTS JUST ANSWER MY LATEST TWO QUESTIONS PLEASE
    10·2 answers
  • If you were looking for a record in a very large database and you knew the ID number, which of the following commands would be t
    10·1 answer
  • allows Internet telephony service providers to deliver telephony services and unified communications applications offering voice
    14·1 answer
  • I’ll mark brainlest
    14·2 answers
  • HURRY 50 POINTS A human is needed to create the algorithms that computers use.<br> True<br> False
    14·2 answers
  • Consider a file/directory with the following info:
    14·1 answer
  • Can someone please do this java lab for me (100 point version)?
    9·1 answer
  • Type the correct answer in the box.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!