Run Code
|
API
|
Code Wall
|
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
Does string contain only digits
Plt-D v.0.8.5
Fórum regex only alphanumerics (except underscore)
ruSrib
.net Q4
minimal path for triangle
12
Encode URl C#
convert a string of numbers to a list then use a forEach to loop through the list
Array Comparison