Untitled

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

double null(int c)
{
	int y = 0;

	if (c <= 3 and c >= -3)
	{
		return false;
	}

	else
	{
		for (int i = 1; i < c+1; i++)
		{
			if (c % i == 0)
			{
				y++;
			}
		}
		return y - 2;
	}

	

}

int main() {

	int c;
	cin >> c;

	cout<<null(c);
}
Leave a Comment