Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
190 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int x, a = 0;
    cin >> x;

    for (int i = 1; i <= x; i++)
        if (x % i == 0)
            a++;
    cout << a;
}
Leave a Comment