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

help me pls i dont understand it
2/5 X -3/4 i need help on this
Which of the following best describes a contradiction between cultural expectations and actual outcomes for women during the 1950s?
Complete the sentences with the (correct form) of do, be, or have. 1. What sort of music __________ you like? 2. __________ she work in the centre of London? 3.
Utilisez la forme de l’article qui convient: du, de la, des, de. 0.Joël mange beaucoup ___  chocolat (m.). 0.Le matin, Sarah mange ____ biscuits. 0.Elle mange a
There is a mound of g pounds of gravel in a quarry. Throughout the day, 200 pounds of gravel is added to the mound. Two orders of 700 pounds are sold and the gr
Aminophylline 0.5 milligrams/kg/hr is prescribed for an 80 kg man; 500 milligrams in 500 ml infusion is prepared. At what rate should the infusion run (in ml/hr
When a number is divided into by 8,9,and 6 the remainders are 7, 8 and 5 respectively. Find the number
How can hair be controlled during food preparation
what is 2 plus two. please answer quickly