Untitled

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

int main()
{
	int a, c = 1, i = 1;
	cin >> a;
	while (c!=a)
	{
		if (a % c == 0) i++;
		c++;
	}
	cout << i;
}
Leave a Comment