what is answer for perfect number????????????????



what is answer for perfect number????????????????..

Answer / david uwihoreye

Perfect number is a positive number which sum of all
positive divisors excluding that number is equal to that
number. For example 6 is perfect number since divisor of 6
are 1, 2 and 3. Sum of its divisor is
1 + 2+ 3 =6

Note: 6 is the smallest perfect number.

Next perfect number is 28 since 1+ 2 + 4 + 7 + 14 = 28
Some more perfect numbers: 496, 8128

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More C Interview Questions

what is ANSI and ISO

7 Answers   HCL,


What is the size of enum in c?

0 Answers  


What are the advantage of c language?

0 Answers  


Is there any restriction in how many arguments printf or scanf function can take? in which file in my c++ compiler i can see the code for implementation of these two functions??

4 Answers  


Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.

12 Answers   MIT, TCS,






What are the advantages of using Unions?

0 Answers   IBS,


How many ways are there to swap two numbers without using temporary variable? Give the each logic.

9 Answers  


int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?

3 Answers  


what is the difference b/w compiler and debugger?

2 Answers   Assurgent,


What is the difference between getch() and getche()?

1 Answers   NSPL,


what is the meaning of java that is (J A V A) full form of JAVA

71 Answers   AKS University, Bhel, BNL, BPO, HCL, Peacecon,


A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above

2 Answers   Accenture,


Categories