Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Fibonacci
//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 void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); int input = 8; int t1 = 0, t2 = 1, nextTerm = 0; for(int i=1; i < input; i++) { Console.WriteLine(t1); nextTerm = t1 + t2; t1 = t2; t2 = nextTerm; } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Interface
Prueba
Converting an int to an int[] using linq.
JHGEDFCSDCSS dd
Concatenate string with null.
Jai
c++ MICHELL MARTINEZ
DijkstraAlgo
array integration
a6
Please log in to post a comment.