Guest User

Untitled

a guest
May 24th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. int main() {
  5. int n;
  6. while (!std::cin.eof()) {
  7. std::cout << "Enter number: ";
  8. std::cin >> n;
  9. std::cout << " Delimiters: ";
  10. for (int i = 1; i <= std::abs(n); ++i)
  11. if (n % i == 0)
  12. std::cout << i << ' ';
  13. std::cout << std::endl;
  14. }
  15. }
Add Comment
Please, Sign In to add comment