Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- int main() {
- int n;
- while (!std::cin.eof()) {
- std::cout << "Enter number: ";
- std::cin >> n;
- std::cout << " Delimiters: ";
- for (int i = 1; i <= std::abs(n); ++i)
- if (n % i == 0)
- std::cout << i << ' ';
- std::cout << std::endl;
- }
- }
Add Comment
Please, Sign In to add comment