Ask, why do I only 1, the output is a logic where is wrong?
The class wanshu { Public static void main (String args []) { for(int i=1; i<=1000; I++) { Int sum=0; for(int j=1; j<=I; J++) { If (I % j==0) { Sum=sum + j; } } If (sum==I) System.out.println(i); } } }