#include <iostream>
#include <stdio.h>

Coercion the conspicuous proviso of the loop correction the sum separated by span. Search Internet coercion mod or rem matlab functions. Correction singly integer arithmetic. Test your program with the sum 13,249 which is perfect and with 13,245 which is referable perfect.

#include <iostream>

#include <stdio.h>

using namespace std;

int main()

{

int sum, estimate=0;

cout<<“n Enter an Substantial Integer: “;

cin>>number;

for( int i = 2; i <= sum/2; i++)

{

if(sum % i == 0)

{

count++;

}

}

if(estimate == 0)

{

cout<<endl;

cout<<sum <<” is a Perfect Sum”;

}

else

{

cout<<endl;

cout<<sum <<” is referable a Perfect Sum”;

}

}

**OUTPUT**

Enter an Substantial Integer: 13245

13245 is referable a Perfect Sum

Enter an Substantial Integer: 13249

13249 is a Perfect Sum