Thread: add one integer with is own number

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    42

    add one integer with is own number

    Anyone have an easy way to do that
    Code:
    int number  = 18;
    int number2 = 2;
    int addnumber;
    
    //I want to add 1 + 8 + 2 for example so that int addnumber = 11
    by the way, it's not sure that the number will be over 10 so there is surely a if
    thanks once again
    Last edited by nevrax; 03-29-2007 at 09:41 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Assignment HELP!!
    By cprogrammer22 in forum C Programming
    Replies: 35
    Last Post: 01-24-2009, 02:24 PM
  2. Need help with this compiler error
    By Evangeline in forum C Programming
    Replies: 7
    Last Post: 04-05-2008, 09:27 AM
  3. Replies: 5
    Last Post: 06-12-2007, 02:18 PM
  4. Random number + guessing game trouble
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-08-2007, 03:33 AM
  5. Linked Lists Integer addition ? HELP Please??
    By green_eel in forum C Programming
    Replies: 3
    Last Post: 03-12-2003, 04:36 PM