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

Newton’s first law of motion states that an object at rest stays at rest,and an object in motion stays in motion,unless acted on by an unbalanced force.
How does Baldwin think his father's life might affect his own future? He is happy that he will not turn out to be like his father. He is certain that he will ma
HELLP PLEASE!!!!!!?!?!?!???! Find the missing length of the triangle.
please help quickly !
Why were the imperialistic attitudes of the European nations called "Social Darwinism?" A) Darwinism is about the survival of the fittest - and European nations
The pigment that absorbs energy from the sun for photosynthesis is called; A chlorophyll B condensation C photosynthesis
please help me quickly !!
What does corroborating sources allow a historian to do? A confirm his or her own biases. B identify a research question to pursue C determine whether an asser
What is the square root of a triangle
Every dimension of a triangular pyramid is multiplied by 10 to produce a new figure that is geometrically similar. What effect does this have on the surface are