Computer Science, asked by abdulhaseeb2824, 6 months ago


Write a java program to accept a number and check whether it is perfect abundant number.

Answers

Answered by eurekha
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 archanapradeep010719
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