multiplying step by step

This is a discussion on multiplying step by step within the C Programming forums, part of the General Programming Boards category; Hi, I need advice on how to multiply and store numbers in the box that way: 125 * 125 split ...

  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
    2,778
    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 12:05 PM.

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, 01: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21