1
Reply

Write a program to print 1 to 100 without using any types of loop and only have an entry point.

Dinesh Rajput

Dinesh Rajput

Jul 17, 2017
278
0

    public static void PrintNext(i) {if (i <= 100) {Console.Write(i + " ");PrintNext(i + 1);} }public static void Main() {PrintNext(1); }

    jamil shah
    November 24, 2017
    1