Program showing splitter

Hey, I need help with a program to do this:

Write a program that loads an integer and print out all numbers that is a splitter to the integer.

Example:
Enter a number: 12
Integer splitter is: 1 2 3 4 6 12

Thank you in advance. It should preferably be as simple as possible ..
You should try to do it by yourself, ask if you have problems with it.
http://www.cplusplus.com/forum/articles/1295/
Topic archived. No new replies allowed.