123

mail@pastecode.io avatar
unknown
c_cpp
14 days ago
214 B
0
Indexable
Never
#include <iostream>
using namespace std;
int asd(int a, int k) 
{
	for (int i = 1; i < a; i++)
	{
		if (a % i == 0) k++;
	}
	return k;
}

int main()
{
	int a, k = 1;
	cin >> a;
	cout << asd(a, k);
}
Leave a Comment