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

In concave mirror, the size of image depends upon
The angle \theta_1θ 1 ​ theta, start subscript, 1, end subscript is located in Quadrant \text{III}IIIstart text, I, I, I, end text, and \cos(\theta_1)=-\dfra
What is a dead ball?
Iron and oxygen form rust. How many moles of rust should be produced if 1 55.321 grams of iron reacted? *
which of the following is the equation of the line that goes through the point (-4,-1) and has a slope of -3?
plzzz helppppWhat is the slope of the line thatcontains these points?x: -1, 0, 1 ,2 y: 10, 18, 26, 34​
PLEASE HELP The Chase by Ana Marjava I walk down the street to you to greet you at the light. I see you there with golden hair, your hands are out
What indicates that the author's purpose is to inform readers about travel south of Madagascar and Zanzibar?
Solve the following equation: 4(8x + 2) = 72
3.) Why is it important to be scientifically literate? Scientifically literate means you are able to understand and interpret basic scientific principles, disco