Advertisement
MusicFreak

Zadataka Seka

Nov 7th, 2012
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.32 KB | None | 0 0
  1. #include<iostream>
  2. #include<iomanip>
  3. #include<cmath>
  4.  
  5.  using namespace std;
  6.  
  7.  int main()
  8.        {
  9.            int n;
  10.            cin>>n;
  11.            
  12.             for (int i = 1; i <= n; i++)
  13.            {
  14.            if (n%i ==0)
  15.            cout<<i<<endl;
  16.            }
  17.         system("Pause");
  18.  return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement