Sunday, 24 December 2017

Program to check given number is perfect number or not

int main( )
   int n, i, j, sum=0;
   printf("Enter the number");


   for(i=1; i<n; i++)
         if(n % i == 0)
       if(sum == j)
          printf("%d is perfect number", j);
          printf("%d is not perfect number", j);

    return 0;


No comments:

Post a Comment

Featured Post

TCS Latest Test Patern ( For On-Campus Drives )

Tata Consultancy Services is software services consulting company whose  headquarter is situated in Mumbai, India. It is the Asia’s larges...