Write a java program to accept a number and check whether it is perfect abundant number.
Answers
Answered by
0
Explanation:
Program to determine whether a given number is an abundant number
STEP 1: START.
STEP 2: SET sum = 0.
STEP 3: REPEAT STEP 4 UNTIL i<=? n.
STEP 4: if n%i == 0. then. if(n/i==i) sum=sum+i. else. sum =sum+i. sum= sum+n/i.
STEP 5: sum =sum - n.
STEP 6: RETURN sum.
Answered by
0
Answer:
Program to determine whether a given number is an abundant number
STEP 1: START.
STEP 2: SET sum = 0.
STEP 3: REPEAT STEP 4 UNTIL i<=? n.
STEP 4: if n%i == 0. then. if(n/i==i) sum=sum+i. else. sum =sum+i. sum= sum+n/i.
STEP 5: sum =sum - n.
STEP 6: RETURN sum.
Explanation:
l hope this answer is right.
Similar questions
Science,
3 months ago
Math,
3 months ago
Science,
3 months ago
Computer Science,
6 months ago
English,
6 months ago
Science,
11 months ago
Computer Science,
11 months ago
World Languages,
11 months ago