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

write 15.1 as a fraction
Green chemical found in many plants
Which is not a compound? 8H2 H2O 6CaO 5HCl
what is 15x6= because im doing ixl and need to know what 15x6=
John's age is 4 more than 3 time Mike's age. If their sum is 20, how old are Mike and John?
Why is a globe more accurate than a flat projection map?
Why was a union victory at Vicksburg so important for the north
write 15.1 as a fraction
Simplify the following expression. 1/4 (24-16x) a. 6+4x b. 6+4 c. 6-4x d. 6-4
True or false? for any two nonzero integers, the product and quotient have the same sign.