using System;
public class F_Power
{
public static void Main()
{
int number;
int exponent;
Console.Write("Base: ");
number = Convert.ToInt32(Console.ReadLine());
Console.Write("Exponent: ");
exponent = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("{0}^{1}={0}", Power(number, exponent));
}
public static int Power(int number, int exponent)
{
if (exponent == 0)
return 1;
else
return number * Power(number, exponent - 1);
}
}