0

How to find out the power of x in dot net ??without using POW function...???

it should be like n^n means 4^4=256 /5^5=3125...

11th Apr 2018, 1:22 AM
Devaraj Lagashetti
Devaraj Lagashetti - avatar
2 ответов
+ 5
You'll need to use the Math.Pow method for the exponentiation. Therefore, something like:- var x = 5; var answer = Math.Pow(x, x); would work for the example you've given. Hopefully it helps! 😉
11th Apr 2018, 5:42 AM
Zephyr Koo
Zephyr Koo - avatar
0
thnq ...and I want the output in the form of 1 4 27 256 3125 . . . so on
13th Apr 2018, 8:12 AM
Devaraj Lagashetti
Devaraj Lagashetti - avatar