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
xml
Interviews
123.0
cpp contact book
codejam1a1
Count the number of capital letters, small letters, digits, spaces and special characters.
Watch Jurassic World Dominion Online Free
Rozwiazanie
6
проект из 7 главы