diff --git a/Perfect number.java b/Perfect number.java new file mode 100644 index 0000000000000..922ef2ff474b6 --- /dev/null +++ b/Perfect number.java @@ -0,0 +1,14 @@ +class Solution { + public boolean checkPerfectNumber(int num) { + int sum=0; + for(int i=1;i