+ 1

how to use pow method

11th Oct 2016, 10:59 AM
Arpita Chatterjee
Arpita Chatterjee - avatar
2 Respostas
+ 6
Math.Pow(2, 3); //returns 2^3, ie 8
11th Oct 2016, 12:00 PM
Zen
Zen - avatar
+ 2
this returns double. you shold notice and convert it to int if you want to save it as an int.
13th Oct 2016, 1:22 PM
alireza
alireza - avatar