Common C# loops:
for (int i = 0; i < 5; i++) { Debug.Log(i); }
while (health > 0) { health--; }
foreach (string item in inventory) { Debug.Log(item); }
Use break to stop a loop and continue to skip the current iteration.
break
continue