Computer Science, asked by ishan200716, 5 days ago

write a program accept a number and check whether it is a deficient number or not. blueJ​

Answers

Answered by ijafri879
0

Answer:

Program to determine whether a given number is a Deficient number

Program to determine whether a given number is a Deficient numberSTEP 1: START.

Program to determine whether a given number is a Deficient numberSTEP 1: START.STEP 2: SET sum= 0.

Program to determine whether a given number is a Deficient numberSTEP 1: START.STEP 2: SET sum= 0.STEP 3: REPEAT STEP 4 UNTIL i<=? n.

Program to determine whether a given number is a Deficient numberSTEP 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)

Program to determine whether a given number is a Deficient numberSTEP 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: RETURN sum.

Program to determine whether a given number is a Deficient numberSTEP 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: RETURN sum.STEP 6: END.

Similar questions