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
question 5 you need to find the internet protocol (ip) address for a website. which command do you use on a windows system?
xz_007 [3.2K]

To find the internet protocol (ip) address for a website, the command that will be used is nslookup. The correct option is B.

<h3>What is nslookup?</h3>

A "network administration command line" program known as nslookup is used to learn about the Domain Name System (DNS) and to obtain the records for various domain names. It is mainly employed for DNS Server troubleshooting. Through domain names, we can access information on the Internet.

In the center of the Domain Name System are these names. Internet Protocol addresses are used by web browsers on the Internet to communicate with one another.

Therefore, the correct option is B, nslookup.

To learn more about nslookup, refer to the link:

brainly.com/question/14286524

#SPJ1

The question is incomplete. Your most probably complete question is given below:

A) Ipconfig B) Nslookup C) Ping D) Tracert

6 0
1 year ago
Which command on the Insert tab of the PowerPoint Online application is used to add a Venn diagram or process chart to a present
Setler [38]

The command to add a Venn Diagram or a process chart on PowerPoint Online is to select the Insert tab, then select the SmartArt button, and there is the process charts listed under Process. But the Venn Diagram is listed under List.

7 0
3 years ago
Read 2 more answers
I need help with this chart !
Alex17521 [72]

Not in high school but i tried my best to help

(Sorry that its blurry )

3 0
3 years ago
Which of the following cameras is a high-end digital camera that has interchangeable lenses and uses a mirror to display on its
katovenus [111]
The camera that <span>is a high-end digital camera that has interchangeable lenses and uses a mirror to display on its screen an exact replica of the image to be photographed is called an SLR. Hope this answers the question. Have a nice day.</span>
5 0
3 years ago
Which soft skills would these mobile app developers need to use in the situations described?
Ber [7]

Answer:

1: work ethic/presentation.

2: communication.

3: adaptability.

4: creativity.

(these are all guesses so i'm not 100% sure)

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • When people need information, they typically turn to:
    7·1 answer
  • Themes are applied from which tab?
    6·1 answer
  • How do media and networks interact
    11·1 answer
  • Which is an example of a student practicing ethical behavior online??
    7·2 answers
  • Write a program that reads a target string from the keyboard and then another sentence string from the keyboard.
    10·1 answer
  • This is the thing that I don't understand why did they banned private chat like there are long-distance relationships, and frien
    13·2 answers
  • You should always assign the Needs Met rating before assigning the Page Quality rating, T or F ?
    6·2 answers
  • The nl2br() function can be used to convert new line entries in a text area into html ________________ tags.
    13·1 answer
  • Which of the expressions is false? when a = 10 and b = 4
    8·1 answer
  • Which of the following is typiacally the last step of the mail merge process
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!