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

3. A class rolled number cubes. Their results are shown in the table. What is the experimental probability of rolling the number 1? Round your answer to the nea
Earth has a low air pressure zone at the Equator because __________. air is cold and sinks toward the surface of Earth there air is warm and moves away from the
help me fastt pleaseee What is the best way for a healthcare professional to communicate with a patient who doesn’t speak the same language? A. use sign langua
20 Alex and Chris share sweets in the ratio Alex : Chris = 7:3. Alex receives 20 more sweets than Chris. Work out the number of sweets Chris receives.
HELPPPPP I NEED ANSWERS PLSSSSS
Plzzz help on 4 and 5 I’m confused ...
The North American and Pacific plates are sliding along each other at approximately 2 inches per year (although this speed can vary, especially during a strong
Read these lines from the poem: And then a quarry pare To fit its sides, and crawl between, Complaining all the while In horrid, hooting stanza; What is the tra
Identify what triggered the war between the Union and the Confederacy
Pls helo asap pls pls pls