Hello there, I want to know where to start on writing a program that dissociate a positive integer into sum of positive integers and printing the result. I checked the mathematical background of that and what i saw is scary, I dont even understand the concept at all. Please help me on how to start or how to go about it.
Thanks.

There is at least an easy one: 123 = 100 + 20 + 3
3 = 2 + 1, 1 + 1 + 1
How far can you go? Are there no constraints?

If we are talking number theory, you must have had that in class.
If that scares you, how do you think you can write a program about it?
We won't do your homework you know. Read the rules here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.