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 |
What is the use of bit field?
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }
Can you please compare array with pointer?
How does normalization of huge pointer works?
What is the difference between new and malloc functions?
What is a pointer in c?
what is the difference between NULL & NUL keywords in C?
Explain following declaration int *P(void); and int (*p)(char *a);
how can i get this by using for loop? * ** * **** * ******
what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }
c program to arrange digits in a no in ascending and descending order
write a C code to reverse a string using a recursive function, without swapping or using an extra memory.
9 Answers Motorola, TCS, Wipro,