I am trying to print numbers from 1 to 100 without using loops, using C#. Any clues?
Method A:
Console.WriteLine('1'); Console.WriteLine('print 2'); Console.WriteLine('print 3'); ... Console.WriteLine('print 100');
Method B:
func x (int j) { Console.WriteLine(j); if (j < 100) x (j+1); } x(1);