Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
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.
abcd
File_operations
Problem: on_off
Read XML nodes into Data Dictionary
Hello world
Fibonacci recursion
C# .ToInt() Extension Method Example
Z_non_pow
Project Euler problem 1
min tree
Please log in to post a comment.