My program is giving me factors but its also giving me other numbers i put the variables as int but i think its still using the decimal places for the modulus function here is my program. any help would be greatly appreciated.
using namespace std;
factor = 2,
counter = 0;
cout << "Please Enter a Positive Number: " << endl;
cin >> num;