반응형
- For문
for (int i = 0; i < 10; i++)
{
Debug.Log("Iteration " + i);
}
- Foreach문
int[] numbers = {1, 2, 3, 4, 5};
foreach (int number in numbers)
{
Debug.Log("Number: " + number);
}
- While문
int count = 0;
while (count < 5)
{
Debug.Log("Count: " + count);
count++;
}
반응형