// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace Loop { public class Program { public static int GetMe3() { Console.WriteLine("GetMe3 called"); return 3; } public static void Main(string[] args) { for(int i = 0; i < GetMe3(); i++) { Console.WriteLine(i + 1); } } } }