ccplusplus.com
Learn C, C++ Concepts
Friday, January 13, 2012
c program to find perfect number
/*********************************************************************** * File : print-perfect-number.c * Author : Saurabh Gupta * Desc : c program to find perfect number * Source : http://ccplusplus/p/c.html * Created : PM 06:33 13 January 2012 * Note : ************************************************************************/ #include
int main() { int n, i, sum; printf("Perfect numbers from 1 to 100 are: "); for(n=1;n<=100;n++){ i=1; sum = 0; while(i
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment