class a{ int i=0; void Main(){ for (i=0; i<50; i++){ if (i%5) Woot(); else Weet() } } void Woot(){ ...; } void Weet(){ ...; } }