Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Problem: fb_series
//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) { int n = Convert.ToInt32(Console.ReadLine()); int a = 0; int b = 1; int c = 0; string s=""; for (int i = 2; i < n; i++) { c= a + b; s += c; a= b; b= c; } Console.WriteLine(s.IndexOf(n); } } }
run
|
edit
|
history
|
help
0
Plantera mas com escolhas
Nested Namespace
Convert from one encoding to another
Test3
Program A
Hello-Heath-World
Compiler
C# program to Determine if Two Words Are Anagrams of Each Other
4x4 ver 3
Sort A List of Ages of Students (Solution: Stack / O(N^3) Complexity)