+ 2

Please Explain

Please explain the example. I don't understand how the output is 8? Console.WriteLine(Math.Pow(2, 3)); //Outputs 8

16th Nov 2018, 1:21 AM
Ivan A Mendiola
Ivan A Mendiola - avatar
2 Answers
+ 5
Pow(2,3)= 2^3=2*2*2 so it gives 8 Console.WriteLine(Math.Pow(2, 3)); //so it will print output at console as 8
16th Nov 2018, 1:52 AM
MsJ
MsJ - avatar
0
Thank you!
16th Nov 2018, 3:32 AM
Ivan A Mendiola
Ivan A Mendiola - avatar