Untitled
unknown
c_cpp
2 years ago
190 B
5
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