Thread: Mathematics program - need help

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    1

    Mathematics program - need help

    Hey guys!
    I've just started programming and I want to be able to write a program which will be able to find all solutions to equations like the following:
    a+b+c+d=22. where a, b, c & d are positive integers<17
    Im not too sure how to start off etc. Would someone be able to help me???
    Thanks!!!

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    Look up loops.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  3. #3
    spaghetticode
    Guest
    I'm sure somebody would be able to help you if you asked a specific questions. This is more like, "I've just started engineering and I want to be able to build a car engine like the following: (some random specification). Would someone be able to help me?"

    What answer to that would you expect?

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    Start by getting a good book on c++.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mathematics in Programming
    By silk.odyssey in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 02-23-2006, 08:29 PM
  2. C++ mathematics????
    By strickey in forum C++ Programming
    Replies: 4
    Last Post: 02-07-2005, 12:20 PM
  3. Highschool mathematics
    By Panopticon in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 06-09-2003, 12:52 AM
  4. difficult(4 me) mathematics program
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-28-2002, 11:41 AM
  5. mathematics
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 11-25-2001, 12:32 PM