arrow_forward
همه ارسالها
جزئیات ارسال کد#324
برای پسندیدن وارد شوید
1#include <iostream>
2using namespace std;
3
4int main()
5{
6 int n;
7 cin >> n;
8
9 int i = 2;
10 int cnt = 1;
11 while (n != 1)
12 {
13 if (n % i == 0)
14 {
15 n = n / i;
16 cnt++;
17 }
18
19 else
20 i++;
21 }
22
23 cout << cnt;
24
25 return 0;
26}
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8