zubariainamilahi
zubariainamilahi zubariainamilahi
  • 24-10-2021
  • Computers and Technology
contestada

what is a for command? can u use a variable instead of a number in the for command!
​

Respuesta :

anonymoususer121 anonymoususer121
  • 24-10-2021

Answer:

A for loop is a block of code where a certain instruction repeats a certain amount of times.

Yes, you can use a variable instead of a number in a for loop.

Explanation:

For example, you're using a for loop and you want to repeat it a certain amount of times, but you want to take user input. You would ask the user for their input and assign it to a variable, then use that variable for the for loop.

Answer Link

Otras preguntas

How many times does 88 go into 382?
What numbers are always prime numbers?
I need some help with this It is given that 2(3 + x) = 6 + 2x. This is an example of the ___________ property. A) associative B) commutative C) distributive D)
Why are temperatures in san diego california usually cooler than they are in el centra california?
What numbers are always prime numbers?
f(x)=−x3 −x2 +16x+16 1. Calculate f′(x). 2. Calculate f′′(x). 3. Find the x values such that f(x) = 0. Note: this can be done by factoring. 4. Find the stationa
What is the GCF of 105,30 and 75 and How?
What are some positive effects of an earthquake?
What was one way world war 1 affected the political situation in europe??
How many times does 36 go into 117?