fork(9) download
  1. using System;
  2. using System.Diagnostics;
  3. using System.Linq;
  4.  
  5. namespace ProgramConsole
  6. {
  7. public class Program
  8. {
  9. public static void Main(string[] args)
  10. {
  11. MyLoop(15, 45, x => ++x);
  12. MyLoop(60, 10, x => --x);
  13.  
  14. }
  15.  
  16. static void MyLoop(int start, int finish, Func<int, int> op)
  17. {
  18. for ( var i = start; i < finish; i = op(i) )
  19. {
  20. //
  21. }
  22. }
  23. }
  24. }
Success #stdin #stdout 0s 33584KB
stdin
Standard input is empty
stdout
Standard output is empty