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

Kevin is scanning old images from his college library. He might use these scanned images in the college magazine. He might also use them on the college website.
The diagram shows a triangle. What is the value of w?
Help me please!!!!!!!! Numbers 9,10,and 12
I'm kinda stuck. Can anyone help?
How do I solve this?
Shayla's ndeshare fare from the airport was $28.50, and she added a 15% tip. How much did Shayla pay in total?
How did labor unions affect the economy after WW2?​
We’re doing a debate on why we should eliminate meat in order to stop climate change. I’m on the negative side, what arguments should I include in my topics?
At track practice, Coach Wilson told the team to split into groups of four for a special relay. The first runner had to run 1 lap around the track (440 yards).
_____nerves are responsible for carrying messages from the brain and spinal cord to other parts of the body and causes muscles to move. A Skeletal B Sensory C M