Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
recursivefact
//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 long factorial (int n ) { if (n<=0) { Console.WriteLine("enter no > 0"); } if (n==1) { return 1; } long fact = 1; fact = n * factorial(n-1); return fact; } public static void Main(string[] args) { int n = 5; Console.WriteLine(factorial(n)); } } }
run
|
edit
|
history
|
help
0
https://www.fxp.co.il/showthread.php?t=21125499
BST final
单链表
Listiteration
Problem: on_off
hamming distance
Remove Duplicate characters from String
Hello world test
TestCodec1
Evo Ivana da budes fancy :D