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.
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.
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.