Run Code
|
API
|
Code Wall
|
Users
|
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
0
Please
log in
to post a comment.
test
Nice Stuff
out parameters
Delegaty
Date format display
Problem: fb_series
Linked list solution with remove
lit pe
Carnival 1.0
Intuit // C# // listing_4.7 (case // calculator)
Please log in to post a comment.