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

I’m trying to answer this question
What is the volume of a flask that contains 0.730 moles of Nitrogen at a pressure of 698 mmHg and a temperature of 35.4°C?
Simplify 3 1/4 ÷ 1 1/2 / 2 1/2
What is the answer to this question?
Which detail from the story is left out of the animated version? A.What the mood of the crowd is during the penalty kick B. Why the player earned a penalty-kick
2. 4 1 4 5 -4 -3 -2 -1 5 X 2 2 w w5 How many roots of f(x) are rational numbers? 0 * 1 2 ANSWER: C
What is DRAM AND SRAM
If the volume of a small container is 14,520 cubic millimeters, what is the volume of the container in cubic centimeters
Analyze the diagram below and complete the instructions that follow. Find the value of x and the value of y. A. x=22/2, y = 8 B. X= 2, y = 416 C. x=21/2, y= 2/6
If a moving body of mass 100g has kinetic energy 45 joules, what will be it's velocity?​