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

Solve the system algebraically. check your work. 2x + 5y = 10 2x + 3y = 6
3∙(a+x), if a=8; x=−10
It is illegal for a minor to even attempt to purchase alcohol. a. True b. False
Now that you have worked through a lot of material that includes these basic patterns, and you have compared grammatically correct and incorrect sentences, writ
A book with 30 pages has 21 pages with printing, 5 pages with printing and pictures, and 4 pages that are blank. What is the theoretical probability of opening
What was one of the two major goals that the national organization for women work towards when it was first founded?
Who was the u.s. general fired during the korean war for trying to create another world war with china?
The "aha!" moment demonstrated by wolfgang kohler's work with chimpanzees demonstrates:
Part 1: find the slope of the line that passes through the points (2, 1) and (2, 0). part 2: in two or more complete sentences, explain why it is not possible t
Given: The coordinates of triangle PQR are P(0, 0), Q(2a, 0), and R(2b, 2c). Prove: The line containing the midpoints of two sides of a triangle is parallel to