Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
Recursion
//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 void Main(string[] args) { //Your code goes here Console.WriteLine(F(3).ToString()); } public static int F(int n) { if(n > 1) return F(n-1) - 7; else return -31; } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Fórum regex only alphanumerics (except underscore)
SSTR PARS
Sort String
Towers of Hanoi
double to hex to double lose precision
2. Basic types: List
3. Delegates and events: closure
Trent Butler All Dead Example
never use floats for money
Lambdas
Please log in to post a comment.