Code is copied!
Program To Print Abundunt Number JAVA
Write a Program to print whether the inputted number is Abundunt or not.
[A Number that is smaller than the sum of all it's factors except the number itself is known as an Abundant number. Example Input : Number = 18 Output : Yes, It's an Abundant Number.]
import java.util.*; class abundunt { public static void main(String args[]) { Scanner sc = new Scanner (System.in); int n = sc.nextInt(); int sum = 0; for (int i =1; in) { System.out.println("It is abundunt no"); } else { System.out.println("It is not abundunt no"); } } }