- #1
soul5
- 64
- 0
Ok this is what I did
int n;
cout << enter number;
cin >> n;
for (int i = 1 ; i < n ; i++ )
if ( n % i == 0 )
I could use some help please like how to I extract the divisor?
so I can add them. Thanks a lot.
int n;
cout << enter number;
cin >> n;
for (int i = 1 ; i < n ; i++ )
if ( n % i == 0 )
I could use some help please like how to I extract the divisor?
so I can add them. Thanks a lot.
Last edited: