Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
mine
Coinbase Customer Support Number ☢️ 1201 ⭒277 ⭒8882☢️♩ΣAγ♩ Coinbase Toll Free Number - Helpline
Test
2
D113
opQ 3
bbbbbb
Code challenge: Factorial
Оператор switch
V
Please log in to post a comment.