Advertisement
estevaorada

FV C#

Apr 22nd, 2025
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.14 KB | None | 0 0
  1.     static int Fv(int n)
  2.     {
  3.         if (n == 0 || n == 1)
  4.         {
  5.             return 1;
  6.         }
  7.         return n * Fv(n - 1);
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement