Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
20
Task/Exponentiation-order/C-sharp/exponentiation-order.cs
Normal file
20
Task/Exponentiation-order/C-sharp/exponentiation-order.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
|
||||
namespace exponents
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
/*
|
||||
* Like C, C# does not have an exponent operator.
|
||||
* Exponentiation is done via Math.Pow, which
|
||||
* only takes two arguments
|
||||
*/
|
||||
Console.WriteLine(Math.Pow(Math.Pow(5, 3), 2));
|
||||
Console.WriteLine(Math.Pow(5, Math.Pow(3, 2)));
|
||||
Console.Read();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue