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) { //Your code goes here int num , fab = 0 ; Console.WriteLine("Enter number : "); num = int.Parse (Console.ReadLine()); fab = fabFun(num); Console.WriteLine(fab); Console.ReadLine(); } static int fabFun(int num) { if (num == 0) { return 0; } else if (num == 1) { return 1; } else return (fabFun(num - 1) + fabFun(num - 2)); } } }
run
|
edit
|
history
|
help
0
sdfgthyjuytgrfedscf
Fixing Broken Lines
sdefuy6j87uytgraxsd
Proj2
f
StringFormatting
dict
Remove Duplicates from a string
C++
Reverse Array (!Array.Reverse())