Skip to content

Commit 80c973d

Browse files
authored
Add files via upload
1 parent 0c4355d commit 80c973d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

perfectnums.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
{
88
int n;
99
int sum=0;
10-
cout<<"enter the number you wan tot check"<<endl;
10+
cout << "enter the number you wan tot check" << endl;
1111
cin>>n;
12-
for (int i=0 ; i<n ; i++)
12+
for (int i=1 ; i<n ; i++)
1313
{
1414
if (n%i==0)
1515
{sum+=i;}

0 commit comments

Comments
 (0)