Untitled

Anonymous
c_cpp
11/30/2023 1:41 PM
256 B
13
Indexable
#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;
}
Editor is loading...
Leave a Comment