D
Deleted member 613
Guest
C#:
for (int counter = 0; counter < 10; counter++)
{
}
This will repeat 10 times because: counter = 0 at the start. While counter is less than ten, the for loop gets repeated, and counter gets increased by one. Once it gets to 11 it'll stop.
Another easy way is with do while loops.Hope u find this useful!