> 其他 >
怎么用C#判断一个数是平方数
新手
人气:437 ℃ 时间:2020-07-06 02:38:52
解答
public string isKaiGen(double b){ double a=Math.Sqrt(b) ; if(a.indexOf(".")==-1) //判断小数点存在否 {return "平方数";}...
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版