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

The figure shows an apple tree, a caterpillar, and a cardinal. What feeding role dors each organism fill in this food chain (producer, consumer, or decomposer)?
461 divided by 3 and 4 divided 298
When a moss spore germinates, what does it grow into
What is the shape of a ramp
What is the term for objects in a story that help the reader better understand the characters or the setting
PLZ SOMEONE HELP ASAP Which best describes the antecedent in the sentence? Sandra taught April how to ice skate, but she wanted to go inside because she was co
What is the power output of an electric motor that lifts a 2.0 kilogram block 15 meters vertically in 6.0 seconds
You deposit $5000 in an account earning 7.5% simple interest . How long will it take for the balance of the account to be $6500
How might Spanish history have been different if the Spanish had not defeated the Moors?
What is a leap year?