how to find perfect numbers in java?
Answers
Answered by
0
The program output is also shown below.public class Perfect.int n, sum = 0;print("Enter any integer you want to check:");n = s.for(int i = 1; i < n; i++){if(n % i == 0){
Similar questions
Social Sciences,
8 months ago
Physics,
8 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago