Mega Code Archive

 
Categories / C# / Data Types
 

Raises a BigInteger value to the power of a specified value

using System; using System.Globalization; using System.Numerics; public class Example {    public static void Main()    {         BigInteger numericBase = 3;         for (int ctr = 0; ctr <= 10; ctr++)         {            Console.WriteLine(BigInteger.Pow(numericBase, ctr));         }    } }