I was recently asked about actually using loops in a game environment. While this isn't a "true" game environment, this is a much better demo than spitting out information in a Debug.Log statement.
This video is a unity c# scripting tutorial, focused specifically on the Unity c# loop. It's part of my #TeachingTuesday and is a unity beginner scripting tutorial. I plan to do more videos on the unity c# basics -- if you have a question, just ask below and I'll try to make a video in response!
Here's a link to the LoopTest code that I used in the video: https://pastebin.com/sKGXdNs7