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

Solve the quadratic equation by completing the square. x^2-10x+15=0 First, choose the appropriate form and fill in the blanks with the correct numbers. Then, s
what is the y-intercept of the line passing through the point (9-7) and has a slope of -1/8
What do.these headlines demonstrate PLEASE HELPP
Your client wants to increase the number of people visiting his website. when analyzing the data for search campaign, which metric do you most want to improve?
The human body can survive a negative acceleration trauma incident (sudden stop) if the magnitude of the acceleration is less than 250 m/s2 (approximately 25g).
Use the the factor theorem to determine wether the first polynomial is a factor of the second. X-3; 2x^2-4x+30
Why do traits have to be heritable for evolution to affect them?
Which of the following is a subordinate clause? Before you leave for school The road is bumpy My sister went to the mall The audience laughed
What was the name of the Communists who led a revolution in South Korea? A) Soviet Socialist Party B) National Liberation Front C) Black Hand D) Red
Why is it even more important for teens to eat better?