Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Understanding For loop and Return functions
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static int printer(int j) { for(var i = j;i >0;i=printer(i-1)) { Console.WriteLine(i); Console.WriteLine("Value of J ={0}",j); } return j; } public static void Main(string[] args) { //Your code goes here printer(2); } } }
run
|
edit
|
history
|
help
1
1
h
Switch
Tarkov Time
12
Xml in C#
IEnumerable visibility of bag
N
mine
Lambda Expression