Untitled
unknown
c_cpp
2 years ago
340 B
4
Indexable
#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);
}Editor is loading...
Leave a Comment