v5
This commit is contained in:
parent
a791408c56
commit
a541701c4f
61 changed files with 475 additions and 0 deletions
21
projects/CALCULATOR-POWER/Program.cs
Normal file
21
projects/CALCULATOR-POWER/Program.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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])));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue