fork(3) download
using System;
using System.Diagnostics;
using System.Linq;

namespace ProgramConsole
{
    public class Program
    {
        public static void Main(string[] args)
        {
            MyLoop(15, 45, x => ++x);
            MyLoop(60, 10, x => --x);

        }

        static void MyLoop(int start, int finish, Func op)
        {
            for ( var i = start; i < finish; i = op(i) )
            {
                //
            }            
        }
    }
}
Success #stdin #stdout 0s 33584KB
stdin
Standard input is empty
stdout

Standard output is empty