Problem1202--使用函数输出指定范围内的完数

1202: 使用函数输出指定范围内的完数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求实现一个计算整数因子和的简单函数,并利用其实现另一个函数,输出两正整数m和n(0 int factorsum( int number ); void PrintPN( int m, int n ); int main() { int i, m, n; scanf(

Input

整数number,区间整数m, n

Output

整数number,区间整数m, n

Sample Input Copy

1 30

Sample Output Copy

1 is a perfect number
1 = 1
6 = 1 + 2 + 3
28 = 1 + 2 + 4 + 7 + 14

Source/Category