Advertisement
SergeyPGUTI

4.1.3

Sep 29th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     cin>>n;
  9.     for (int i=1;i<=n;i++)
  10.     {
  11.         if (n%i==0) cout<<i<<" ";
  12.     }
  13.  return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement