ashah122205 ashah122205
  • 01-12-2020
  • Computers and Technology
contestada

What kinds of circumstances would lead you to writing a function versus using a loop? please explain in simple terms

Respuesta :

handsomesquid807
handsomesquid807 handsomesquid807
  • 02-12-2020

Answer:

1. You want to use parameters

2. You don't want your program to run multiple times

3. You want to call that snippet of code throughout your program

hope this helped :D

Answer Link

Otras preguntas

multiply 7/15 ,a 2 what is answer​
When an observer is biased in favor of making internal attributions in explaining others' behavior, the observer is making Group of answer choices
Help needed within the next 10 minutes​
What are the charges both inside and outside of the neuron after the simulation is complete?
Angela borrowed $30,000 for her college tuition at 3% per year convertible quarterly. Her father agreed to make payments until the outstanding balance was less
Which claim best summarizes the author's proposal ? Based on a study, in the year 2000, humans produced 13.9 billion tons of garbage. Very little research has b
If you are interested in knowing the most accurate calculation of the amount of energy released by an earthquake, which scale would you consult
Apply Decision Tree Algorithm on the following data:
why were europes rivers and seas an important part of its growth?​
Whlch statement below best describes the idea of service-by-size? O The federal government gets first choice on what services they want to provide. O Services a