ORPcmd/projects/CALCULATOR-POWER/Program.cs
2018-11-04 18:28:30 +01:00

21 lines
556 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CALCULATOR_POWER
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 2)
{
string sep = Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator;
Console.WriteLine(Math.Pow(Double.Parse(args[0].Replace(".", sep).Replace(",", sep)), Double.Parse(args[1])));
}
}
}
}