Respuesta :

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.