Thread: multiplying step by step

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    3

    Question multiplying step by step

    Hi, I need advice on how to multiply and store numbers in the box that way: 125 * 125 split to 125 * 5 (put in field1) 125 * 2 ​​* 10 (put in field2) 125 * 1 * 100 (put in field3) and then all added together and printed on a desktop.

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Lookup how the "%" modulus operator works.
    Also, read the homework policy. http://cboard.cprogramming.com/cplus...-homework.html
    (Summary, you must write code before asking for code.)

    Tim S.
    Last edited by stahta01; 05-18-2011 at 11:05 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. why does the memory increase step by step?
    By zcrself in forum C Programming
    Replies: 9
    Last Post: 07-14-2010, 12:04 AM
  2. The Next Step
    By secretpickle in forum C Programming
    Replies: 4
    Last Post: 12-13-2007, 12:56 AM
  3. ADO.Net step by step
    By black in forum C# Programming
    Replies: 1
    Last Post: 04-02-2004, 01:54 AM
  4. FA-Step One
    By rev_happy in forum C++ Programming
    Replies: 2
    Last Post: 03-27-2002, 04:36 AM
  5. my following step?????????
    By moemen ahmed in forum C++ Programming
    Replies: 1
    Last Post: 02-13-2002, 04:32 PM