|
From: Per W. <pw...@ia...> - 2007-09-13 06:24:36
|
And exactly how do you think it would be good if _we_ solved the problem for you? Don't you think that would void this test, and making your education meaningless? Is there a difference if we help you solve problems your teacher hands out, and if we help you by taking your exams instead of you? This problem is very simple, but _you_ have to spend some time figuring that out. In real life, there are not any other person that will step in and solve your problems for you. /pwm On Thu, 13 Sep 2007, parijat chauhan wrote: > my teacher give me a problem,but m not able 2 solve this one. > problem statement is as: > you have a positive number and you have to break it into its all > possible s= > um combinations. > no pair of combinations is to be repeated. > eg. > 5 can be broken as: > 1+1+1+1+1 > 2+1+1+1,2+2+1 > 3+1+1,3+2 > 4+1 > 6 can be broken as: > 1+1+1+1+1+1 > 2+1+1+1+1,2+2+1+1,2+2+2 > 3+1+1+1,3+2+1,3+3 > 4+1+1,4+2 > 5+1 > all these combinations is to be printed on console > thank you in advance > > -- > _______________________________________________ > Surf the Web in a faster, safer and easier way: > Download Opera 9 at http://www.opera.com > > Powered by Outblaze > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |