Menu
Question Index
...

Write a program to find if the given number is abundant number. A number is abundant if sum of the proper factors of the number is greater than the number.

Input (int) Output (boolean)
12 Factors =  1 + 2 + 3 + 4 + 6 = 16
16 > 12
true
19 false
78 true
92 false



class IsAbundantNumber
{
    public static void main(String s[])
    {
        System.out.println("The given number is Abundant Number : " + isAbundant(30));

    }


    public static boolean isAbundant(int number) {
    }

}

Doubts

Problems

Topic: for Loop In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App