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

what is 15/4 plus 11/10. HELP ME PLEASE
Read this excerpt from act iii, scene ii, of shakespeare's romeo and juliet: nurse: there's no trust, no faith, no honesty in men; all perjured, all forsworn, a
which Chinese philosophy encouraged strict laws
Which lines in this excerpt from W.B. Yeats's "An Irish Airman Foresees His Death" suggest that the speaker voluntarily chose to take part in the war? [I know t
Yo __________ en Orlando
solve the following problem A (-5-(-2)=
I'm thinking that the following equation is false but then again I could be wrong, is 15=-3*-5 true or false? Like I said I may be wrong.
apple cost $3.60 for 2lb. at that rate how many pounds of apples can you buy for $5.40
Slope=2, Passing through (2,3)
If a quadrilateral does not have two pairs of opposite sides that are parallel, then it may be a _____. a.parallelogram b.rhombus c.trapezoid d.square e.re