Printing 1 to 100 without Using Loop in C# – Programming, Pseudocode Example, C# Programming Example
C# C# Console

Printing 1 to 100 without Using Loop in C#

In this example, we learn how to print 1 to 100 without using loop in c#. And we’ll solve the problem with two way.

 

Solution 1: Using C# Linq

 

Soution 2: Using Recursive Method

 

Output:

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.