public class PerfectNumber {
public static void main(String[] args) {
int i,j,sum;
for (i = 2; i < 1000; i++) {
sum = 0;
for (j = 1; j
public class PerfectNumber {
public static void main(String[] args) {
int i,j,sum;
for (i = 2; i < 1000; i++) {
sum = 0;
for (j = 1; j