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

One group of people purchased 10 hot dogs and 5 soft drinks for $35. Another group purchased 7 hot dogs and 4 soft drinks for $25.25. What is the cost of a sin
what is 172 over 96.75 simplified?
what was the main goal of European explorers in the 1500s?
4(x-3)+7-10x=5 what is the value of x
How many ways are there to arrange five French club members for a yearbook photo if the president and vice president must be seated in front with the other thre
how did johnny feel about dally in chapter 5 (the outsiders)
As viewed from a cliff 340 feet above sea level, a ship is 450 feet from the shore. What is the angle of depression from the cliff to the ship on the water belo
How can two substances be made up of the same two elements but have very different properties?
-5x+y=-33x-8y=24solve this for me someone (solving systems of equations by substitutions)looking for x and y
how did johnny feel about dally in chapter 5 (the outsiders)