Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp3
- {
- class Program
- {
- static int Sbor(int a,int n)
- {
- if (n == 1) return a;
- if (n == 0) return 1;
- return (a * Sbor(a,n - 1));
- }
- static void Main(string[] args)
- {
- Console.WriteLine(Sbor(2,4));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement