Untitled
#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