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
Hindi,
2 months ago
History,
2 months ago
Math,
2 months ago
Computer Science,
5 months ago
English,
5 months ago
Science,
10 months ago
Computer Science,
10 months ago
World Languages,
10 months ago