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 a = 1, b = 0, c = 0, nth, i; Console.WriteLine("Please Enter The Term Number: "); nth = Convert.ToInt32(Console.ReadLine()); for (i = 1; i <= nth; i++) { c = a + b; a = b; b = c; } Console.WriteLine("The " + nth + " term in Fibonacci series is: " + c); Console.ReadKey(); } } }
run
|
edit
|
history
|
help
0
Basma-1
Frase
4.4.20
Boo socks
sss
hello...
alop
OddEven
binary search tree (insert, search, findmin, findmax, level-pre-in-post order traversals
Area and Parameter of Circle