using System; using static System.Console; using System.Threading.Tasks; using System.Diagnostics; public class Start { delegate void task ( int start); static task x; public static int Main ( string [] args) { x = async ( int s) => { await Task.Delay( 1000 ); WriteLine( $ "{s} sec" ); if (s < 10 ) x(s + 1 ); }; x( 1 ); WriteLine( "Press any key..." ); Console.ReadKey(); return 0 ; } }
t.me/perfect0sight