Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Fibbonachi number by LINQ expression
using System; using System.Linq; using System.Numerics; namespace Rextester { public class Program { private static BigInteger f(int N) { return Enumerable .Range(0, N) .Aggregate( new { Prev = (BigInteger)1, Res = (BigInteger)0 }, (acc, x) => new { Prev = acc.Res, Res = acc.Prev + acc.Res } ) .Res; } public static void Main(string[] args) { int N = 1000; Console.WriteLine("Fibbonachi({0}) = {1}", N, f(N)); } } }
run
|
edit
|
history
|
help
2
sdfrgtyhui897ytr
tester of xpath
(Sort)Rounding Magic - C#
Battle Algorythm
The abstract factory design pattern implemented in c# using generics.
Math 10.96
Stackoverflow 28125983
memes
Test
C# constructor in inheritance