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...
2 Antworten
+ 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! 😉
0
thnq ...and I want the output in the form of
1
4
27
256
3125
.
.
.
so on