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
IMT
bbbbbb
Unturned_Plugins
Reward
www
Full text search using Linqdb
Importent Gen_Coverent Example-1
Vídeo01 - Main
Square Integer Matrix
dict