using System; using System.Collections.Generic; using System.Text; namespace _1_24 { class Program { static int myNum = 0; static long exponent(long b, long e) { if (e == 0) { return 1; } else { return b*exponent(b, (e - 1)); } } static long factorial(long num) { if (num == 1) { return 1; } else { return num * factorial (num - 1); } } static void Main(string[] args) { long n = 0; Console.Write("Enter a number: "); n = Int32.Parse(Console.ReadLine()); long n2 = 0; Console.Write("Enter a number: "); n2 = Int32.Parse(Console.ReadLine()); Console.WriteLine(exponent(n, n2)); } } }