Your for loop prints out once, since the third execution statement in your for loop syntax added 1 to your team variable, making it 2. This reached the second condition statement, which exited the for loop after printing once.
Your do/while loop also prints out once, since your execution block also added 1 to your team variable, making it 3. This reached the condition statement, thus exiting the do/while loop after printing once.
Therefore, your program printed out twice.
Also, make sure to put a semi-colon after the declaration of your team variable, and after the "team++" statement in your do/while loop's execution block.
Let me know if this helps!