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

To go on a summer trip, Eric borrows $800. He makes no payments until the end of 4 years, when he pays off the entire loan. The lender charges simple interest a
In China, the use of the year number for emperors began with which emperor in which dynasty? Which thinker of the Western Han Dynasty put Confucianism on an ort
100 POINTS!!! AP Government and PoliticsProvide the information on these six kinds of political actors:1. The mediaHow can the media influence lawmakers or the
What is 5/6 + 3/4?A. 8/12B. 8/10C. 1 9/12D. 1 7/12
change the following sentences to the active voice. add an oppropriate subject where necessary. 1. The bracelet was found on the stairs last night.2. the absen
Please help. I need this done badly.
Which sentence is not an example of a scientific hypothesis? Wearing helmets when riding a bike will increase.A) the safety of cyclists.B) the incidence of bike
A team from the high school went on a science-and-math quiz show. The science questions were worth 1 point and the math questions were worth 8 points. The team
what’s digital infastructure
Males tend to prefer which type of gambling more than females?