I'm trying to make a program that will find the factors of a number, this is currently what I have. When I run the program I can enter a number but when i press enter nothing happens, it just sits there. Did I do something wrong in the code?
#include <iostream>
using namespace std;
int main()
{
int number;
int factor;
int testNumber;
cout << "This will find the factors of a number\n\n";
cout << "Please enter a number: ";
cin >> number;