Math.Pow method question in C#
Hi, Can someone just explain this output. Math.Pow(b,a)=10240000000000 Here is the code from another tutorial resource I am using. I wanted to know understand the output Math.Pow(b,a)=10240000000000 I understand the other output just stuck on the Math,Pow method example here. /* example 4 */ using System; namespace VariableDefinition { class Program { static void Main(string[] args) { int a = 10, b = 20, c0, c1; double c2, c3, c4, c5; c0 = b + a; /* b plus a */ c1 = b - a; /* b minus a */ c2 = b / a; /* b divided by a */ c3 = b * a; /* b times a */ c4 = b % a; /* b mod a */ c5 = Math.Pow(b, a); /* b raised to the a power */ /* note the use of the string concatenation operator; i.e. the + sign */ Console.WriteLine("b+a={0}, b-a={1}, b/a={2}, b*a={3}, b%a={4}, " + "Math.Pow(b,a)={5}", c0, c1, c2, c3, c4, c5); Console.ReadLine(); } } }