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

which one of the following is a correct spelling of a plural noun. A) buffaloes B) oxes C) gooses D) knifes
How do some human white blood cells help destroy pathogenic bacteria?
What kind of scholar studies objects left behind by humans?
What property is shown in the equation below? -43 / (-1)=43 A) reciprocal property B) negative one property of division C) identity property of division D) Div
Since people today are living longer, a person may be able to know four generations of her ____. a. gentile b. progeny c. autonomy d. virility
what is 2096 to the nearest thousand
Which one of the following statements about attitudes is correct? A. Negative attitudes can't be changed. B. Positive attitudes can help us learn qu
Which of the following is an identity? Also, please include an explanation. sinθcotθsecθ = 0, sinθcotθsecθ = 1, sinθcotθsecθ = cot2θ, or sinθcotθsecθ = tan2θ
DNA copying can be done by bacteria or by using
What state did Frederick Douglass escape to after leaving Maryland? Maine Connecticut Massachusetts Rhode Island