c# repeat function n times code example Example: repeat 10 timesw c# for (int i = 0; i < 10; i++) { }