真水无香No.1

导航

 

2013年4月14日

摘要: 题目:编写一个控制台应用程序,求1000之内的所有“完数”! class Program { static void Main(string[] args) { for (int i = 2; i <= 1000; i++) { int s = 1; string str = "1"; for (int j = 2; j <= (int)Math.Sqrt(i); j++) { ... 阅读全文
posted @ 2013-04-14 14:25 真水无香No.1 阅读(150) 评论(0) 推荐(0)