Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<ulong> numsFibonacci = new List<ulong>();
- Enumerable.Range(0, 200)
- .ToList()
- .ForEach(
- i =>
- {
- numsFibonacci.Add(i <= 1 ? 1 :
- numsFibonacci[i - 2] + numsFibonacci[i - 1]);
- }
- );
- numsFibonacci.Take(15).Dump("Primeros 15 Números Fibonacci");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement