//not found on the internet.
wanted a simple java program which would print perfect numbers between two limits. so here i took the {min,max}={1,50}. To access with the other numbers you can change the number 50 to the desirable level number or you can take the input from the user.