Program showing splitter

This is a discussion on Program showing splitter within the C++ Programming forums, part of the General Programming Boards category; Hey, I need help with a program to do this: Write a program that loads an integer and print out ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    1

    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 ..

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,717
    What do you mean by "splitter"? It looks like you want to print the factors of the number. Also, please read about the homework policy.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  2. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 06:49 PM
  3. my server program auto shut down
    By hanhao in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-13-2004, 09:49 PM
  4. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 08:48 AM
  5. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 04:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21