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’s the Answer please help .............
>Please help me, Been stuck on for a while : Assess the textual evidence to determine the best choice to support the claim that in "The Most Dangerous Game"
i lost my watch. It was gifted to me by my uncle.​
If the cost of an item is $72 and it has a retail price of $89, what is the gross margin?
People often use the term “homosexual” to refer to a person’s identity rather than a behavior or an act that a person does. In fact those who experience homosex
I WILL GIVE BRAINLIEST!!!!It takes Cho 5 seconds to move a sofa 10 meters with a force of 2 N. What is Cho's power output?50 N-m/sec4 N-m/sec5 N-m/sec10 N-m/sec
Using the aging method of accounts receivable method, $5,700 of the company’s Accounts Receivable are estimated to be uncollectible. At the end of the year, the
Evaluate 2x2– 4xy – 3y2for x = 1 and y = - 1
Eileen mows her neighbors' lawns for a fee of $12. Eileen charges an additional $2 for every square meter she mows. Which function can be used to determine how
Why did Jackson march to Pensacola?