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

Reggie can do 50 pushups in one minute. If the mass that Reggie is lifting which each push-up is at 92 kg, what must also be measured in order to determine his
What are all the solutions? 4x^2+9y^2=72 x^2+y^2=5
Plz Help ASAP.......
what is the main reason equatorial ocean water is warmer than polar ocean water?
Our honda van gets about 20 miles per gallon. Our Toyota Prius gets about 42 miles per gallon. What percent increase is fuel economy do I get with the Prius?
What is the mole ratio of d to a in the generic chemical reaction 2a+b-- c+3d?
Look at the painting of king louis xiv of france. which word best describes the way the king is portrayed in the painting? young powerful ordinary handsome
In the story to kill a mockingbird what happens to jem and scout on there way home from the school on halloween
Calculate the constant of variation if y varies directly as x. y = -3 x = 2
Which is the most accurate way to estimate 25% of 53?