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
Luba_88 [7]
3 years ago
7

How do you use loops in code?

Computers and Technology
1 answer:
Keith_Richards [23]3 years ago
4 0

Answer:

A loop in a computer program is an instruction that repeats until a specified condition is reached. In a loop structure, the loop asks a question. If the answer requires action, it is executed. ... A computer programmer who needs to use the same lines of code many times in a program can use a loop to save time

Explanation:

You might be interested in
MinMax is a function that takes five arguments and returns no value. The first three arguments are of type int. The last two arg
Luba_88 [7]

Answer:

#include <iostream>

using namespace std;

void MinMax(int x,int y,int z,int *max,int *min)

{

   int big,small;

   if((x>y)&&(x>z))    //to check for maximum value

       big=x;

   else if((y>x)&&(y>z))

       big=y;

   else

       big=z;

   if((x<y)&&(x<z))  //to check for minimum value

       small=x;

   else if((y<x)&&(y<z))

       small=y;

   else

       small=z;

   *max=big;   //pointer pointing to maximum value

   *min=small;     //pointer pointing to minimum value

}

int main()

{

   int big,small;

   MinMax(43,29,100,&big,&small);    

   cout<<"Max is "<<big<<"\nMin is "<<small;  //big and small variables will get value from method called

   return 0;

}

OUTPUT :

Max is 100

Min is 29

Explanation:

When the method is called from first three integers maximum will be found using the conditions imposed and maximum value will be found and similarly will happen with the minimum value.

5 0
3 years ago
Which of the following commands would instruct OSPF to advertise ONLY the 192.168.10.0/24 network in Area 0?
xz_007 [3.2K]

Answer:

First, you need to start the OSPF process by executing the command:

<em>Router (config)# router ospf {process-ID#}</em>

Then, you have to instruct the router to advertise the networks that are directly linked to it by entering this network command with the area ID number for that network:

Router (config-router)# network {192.168.10.0} {255.255.255.0} area {0}

8 0
4 years ago
What are some other projects or things you do in your life (other than writing an essay) where you use an iterative process?
Sophie [7]

Answer:The iterative design process occurs in a continuous cycle involving three unique stages: formulate, test, evaluate. These core elements make up the basic progression in which the development of a game will follow. The rest is simply rinse and repeat

Explanation:

7 0
3 years ago
Read 2 more answers
Why do we use computers?<br><br>​
Nina [5.8K]

Explanation:

Computers are very useful machines..We use it for creating presentations, creating documents, creating many more things that are made nicely by computer..

6 0
3 years ago
Read 2 more answers
Sally notices that she has the same set of 10 blocks in her code in multiple places. She decides to create a new block (procedur
SashulF [63]

Answer: it is C. 41

Explanation: i no it

6 0
3 years ago
Other questions:
  • A company that manufactures machine parts order a new system that makes Products at ten times the speed of earlier machines. the
    13·2 answers
  • What is the definition of a command computer?
    15·1 answer
  • What is an electronic path over which data can travel.
    7·1 answer
  • Place the steps in order to keep a graphic from spilling over into the next page and to include the text it is assciated with.
    12·1 answer
  • In what software development model does activity progress in a lock-step sequential process where no phase begins until the prev
    7·1 answer
  • To apply the StartSafe philosophy to preventing workplace violence, what are the three steps to follow? A. Plan for your job req
    12·2 answers
  • Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. What critical detail must she ha
    9·1 answer
  • Linda is searching for a new job. Which information would her potential employers likely review in her social profile?
    14·2 answers
  • Explain why it is wise to remember your social security number
    15·2 answers
  • Consider the information about the meaning of the word analog from paragraph 2 listed below. Which of the following phrases best
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!