Untitled

mail@pastecode.io avatar
unknown
c_cpp
14 days ago
273 B
0
Indexable
Never
#include <iostream>
using namespace std;

int del(int a) {
	int count = 0;
	for (int i = 1; i <= a; i++) {
		if (a % i == 0) {
			count++;
		}
	}
	return count++;
}

int main()
{
	int a;
	cin >> a;

	int b = (del(a));
	cout << b << endl;

	return 0;
}
Leave a Comment