Advertisement
Ionu28

cod

Jul 12th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {   int n, i, j,  x=0, nr_divizori=0;
  5.     cin >> n;
  6.     for(i = 1; i <= n; i++)
  7.     {
  8.         if(n % i == 0)
  9.         {
  10.             nr_divizori++;
  11.         }
  12.     }
  13.     for(j = 1; j <= n; j++)
  14.     {
  15.         x = nr_divizori + i;
  16.     }
  17.     cout << x;
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement