Tuesday , December 6 2016
Home / Blue J / Program in Java to find whether a number is perfect or not

Program in Java to find whether a number is perfect or not

Perfect Number-  If the sum of all the factors of a number is equal to the number itself then it is a perfect number. This program finds whether a given number is perfect number or not.

Example:- 6 = 1+2+3

28 = 1+2+4+7+14

OUTPUT:

program to check perfect number

Also See:   JAVA program to calculate digit sum of an integer

Check Also

Java Program to find Mobius Function of number

Mobius Function Java Program:  The MOBIUS function µ(n) for a natural number N is defined as ...

One comment

  1. Cool is so ccool

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.