Untitled

mail@pastecode.io avatar
unknown
c_cpp
22 days ago
295 B
0
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;
int ch(int a)
{
	int count = 0;
	for (int i = 2; i <= a / 2; i++)
	{
		if (a % i == 0)
		{
			count++;
		}
	}
	return count;
}
int main()
{
	int a;
	cin >> a;
	int skoka = ch(a);
	cout << skoka << endl;
	return 0;
}
Leave a Comment