Untitled

mail@pastecode.io avatar
unknown
plain_text
16 days ago
264 B
0
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;
int ime(int x)
{
	float b;
	int l = 0;
	b = sqrt(x);
	for (int i = 1; i < b; i++) {
		if (x % i == 0) {
			l++;
		}
	}
	return l;
}

int main()
{
	int x;
	cin >> x;
	cout << ime(x);
}
Leave a Comment