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

Which substance will combine with oxygen gas to produce a greenhouse gas? a. Na b. S c. H₂ d. Ne e. C
What organs work with skin?
What challenges did the californios face?
how many books did Harriet beecher stowe write?
if f(x)=|3x-4|+2, find f (-10)
The following statements about carbon dioxide are true EXCEPT a. It can be prepared by the action of acid on CaCO₃ b. It is used in fire extinguishers c. It d
1,352 pounds is what fraction short of a ton? A) 169/250             B) 77/100               C)13/20             D140/223
Which of the following is equivalent to 3a + 4b – (–6a – 3b) ? A. 16ab B. –3a + b C. –3a + 7b D. 9a + b E. 9a + 7b
do you know how to say my in Spanish?
1. What is the respiratory structure of a millipede? A. book lungs B. tracheal tube C. gill slits 2. what is the respiratory structure of a spider? A. gills B.