Question #311323

Write a c++ program that takes a number from the user and prints factors of the number.

Expert's answer

Here is program:

int main()
{
	int num;
	int factor;
	cout << "Enter number: " << endl;
		cin >> num;
		factor *= num;
		cout << "Factor = " << factor << endl;
}
LATEST TUTORIALS
APPROVED BY CLIENTS