Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
two words are anagrams
IEnumerable visibility of bag
Get Distinct value using Group By , Having , Count in DataTable C#
I know it's a bit combersome, but it's my first attempt.
q1
V5
wyliczenie 1 dnia tygodnia
Examples of JS-Like higher-order functions in C#
Stack as a queue
xyz
stackse - search stackoverflow differently
Please log in to post a comment.