摘要:
/***perfect number, if a number equals the sum of it's factor,then it is a perfect number.**/#include<stdio.h>int factorSum(int n){int sum = 0;for(int i = 1;i < n;i++){if(0 == n % i)sum += i;... 阅读全文
posted @ 2010-10-14 23:06 生无涯 阅读(242) 评论(0) 推荐(0) 编辑