/*
Write a program to read a positive integer n greater than 1 and 
to print the number of divisors of n that are greater than 1 and less 
than n. If n is less than or equal to 1, print an error message.
*/

#include <iostream>
using namespace std;
int main()
{
	int i, n, count;
	cout << "Enter a pos. integer > 1: ";
	cin >> n;
	count = 0;
	if (n > 1)
	{
		for (i = 2; i < n; i++)
			if (n % i == 0) // if i is a divisor
			{
				// Print the divisor
				//cout << i << " ";
				count++;
			}
		cout << "\n" << n << " has " << count << " divisors.\n";
	}
	else
		cout << "The number should be > 1.\n";
	return 0;
}
