public static void PrintNext(i) {if (i <= 100) {Console.Write(i + " ");PrintNext(i + 1);} }public static void Main() {PrintNext(1); }
static void Main(string[] args){int i = 1;repeat:if (i < 101){Console.WriteLine(i);i++;goto repeat;}Console.Read(); }
you have used a function.i don't want any function rather than Main() function.