Hi, welcome to the Ranch!
One small admin matter: Please
UseCodeTags to format your code nicely. It makes it much easier to read. I've gone in and done it for you this time :-)
You are right, you need a counter - and you need to keep that counter separate from the total number of workers the user just input!
What you've done in your code is overwritten the number of workers you just read in from the user with the number "1" to start looping.
Simplest fix: declare a new variable to keep track of which worker we are dealing with. If we are just going to use it within the loop, then lets declare it there.
The standard template for a for loop is:
This declares a variable 'i', starts it at 0, and goes up to 'count' executing what is in the braces once for each value.
But what is count? It should be the number of times you want to loop, which in this case is the number you just input: workers.
Next you will need a place to store ALL of the workers names.
The 'name' variable you have declared will store one of them.
To store multiple names, you will probably need an Array.