可能重复: 确定输入是否是完美正方形的好算法是什么?
我希望用最短最简单的方法来检查数字是否是C#中的完美平方
一些完美的正方形:
1, 4, 9, 16, 25, 36, 49, 64, 81, 100, ......
c# square-root
c# ×1
square-root ×1