Untitled

mail@pastecode.io avatar
unknown
c_cpp
21 days ago
291 B
0
Indexable
Never
#include <iostream>
#include <math.h>
using namespace std;

int countdel(int a) {
	int b = 0;
	for (int i = 2; i < a; i++) {
		if (a % i == 0) {
			b++;
		}
	}
	return b;
}

int main() {
	setlocale(LC_ALL, "Russian");
	int a, s;
	cin >> a;
	s = countdel(a);
	cout << s;
}
Leave a Comment