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
27
Intuit // C# // Lecture_4 // Laba_#2
eden
Variables
Approximate_exp_13112020
Lazy exception caching
test
a
problem_name
Fff