import java.util.Scanner;
public class JPA03 {
static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args) {
test();
test();
public class JPA03 {
public static void main(String[] args) {
int i, num, sum = 0;
System.out.printf("1~1000中的完美數有: ");
for (num=1;num<=1000;num++){
sum=0;