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

Lavoisier made an important contribution to chemistry by _____. developing the atomic theory of matter developing the law of conservation of matter developing t
A car travels 528 miles on 16 gallons of gas. At the same rate, how many gallons of gas are needed to travel 165 miles? help me please
Complete this sentence. If the mass of object A is __________ than object B, then the weight of object A will be _______________ the weight of object B. greate
Which of the following planes is parallel to ABCD
. Use the number line to illustrate the difference: -3-(-7)​
If the perimeter of the triangle below is 120 inches, what is the length of AC?
can a hero go unnoticed?
how did economic differences between the north and south contribute to their different views toward slavery
Sarah bought 3 pounds of grapes for $2.25. Dan bought 4 pounds of grapes for $3.00. Answers- y=3/4x. y=2x. y=3x. y=1/3
Why has Grendel been exiled? * A. Grendel was exiled by God for killing Cain.B. Grendel has been exiled, together with all monsters, goblins, and forms of evil-