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.
#include <iostream>
#include <iomanip>
using namespace std;
int main(void)
{
int num,
factor = 2,
counter = 0;
cout << "Please Enter a Positive Number: " << endl;
cin >> num;