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