📅  最后修改于: 2022-03-11 14:49:03.581000             🧑  作者: Mango
static void Main(string[] args)
{
float x = float.Parse(Console.ReadLine());
int y = int.Parse(Console.ReadLine());
float result = CalculatePower(x, y);
Console.WriteLine("{0} to the power of{1} is {2} ", x, y, result);
}