Quantcast
Channel: Search Results For: domain:c-sharpcorner.com
Viewing all articles
Browse latest Browse all 157

Display Number From 1 to 100 Without Loop in Windows Store App

$
0
0

Today I am describing a very simple but interesting thing. Because we always print number from 1 to 100 using a loop. But someone asked me how to print these numbers without using a loop. Really at that time I had no idea although I proceeded to do it. I finally got the idea to use recursion (in which a method calls itself) and print the number.


Viewing all articles
Browse latest Browse all 157

Trending Articles