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 is the importance of big O notation in programming?.
The table shows values for functions f(x) and g(x). X f(x)=0. 5x g(x)=−0. 5x 1 −2 4 2 −1 2 32 0 1 1 1 12 12 2 14 0 What is the solution to f(x)=g(x) ? Select ea
How many months did the original Roman calendar have?.
What happens during a drought? A. Severe heat lasts for several days or weeks. B. A strong storm with powerful winds and heavy rains occurs. C. Sea levels ris
I NEED ANSWER FAST!!! BRAINLEST WILL BE GIVEN Select from the drop-down menu to correctly complete the statement. If an organism is composed of only one cell, i
find the value of x​
Why did Harry Truman delay the Potsdam Conference?.
What is the y-intercept ??? Please show step by step!!
I need a description of autumn
The medium ground finch (Geospiza fortis) and the cactus finch (Geospiza scandens) are similar in size and appearance. As you can tell from their scientific nam