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

An item costs c dollars and 6% sales tax is charged... You are buying a skateboard that costs $75. What is the cost of the skateboard including sales tax?
Define a function is_prime that receives an integer argument and returns true if the argument is a prime number and otherwise returns false. (an integer is prim
This is what I got,1/x + 1/y =86/x + 12/y = ....Can someone tell me what to replace the "...."?
in which US state would you visit to meet Hyperion, the very tallest Redwood?
who was Jamaica first national hero
someone help me to create book-r-us database design with logical and physical diagram
help me please I'm stuck
What is the answer for this problem
In one or more complete sentences, explain about vehicle maintenance and vehicle safety
Identify and summarize five major laws that deal with equal employment opportunity.