Untitled
user_5811307
plain_text
2 years ago
231 B
10
Indexable
#include <iostream>
#include <cmath>
using namespace std;
int g(int a)
{
int gg =0;
for(int i =2; i < a;i++)
{
if(a%i==0)gg++;
}
return gg;
}
int main()
{
int a ;
cin >> a;
cout << g(a);
}Editor is loading...
Leave a Comment