我需要计算功率(10,n)
可以使用Math.Pow (10, n)吗?
Math.Pow (10, n)
或者我应该使用循环?
for (int i = 0; i < n; i++){ x*=10; }
哪一个更好?为什么?
.net c# math
.net ×1
c# ×1
math ×1