Results 1 to 2 of 2
-
April 21st, 2012, 02:10 PM #11Registered User
postsIs there a way to do multiples in c++?
is there a way to tell your C++ programs to only execute an equation if it is a multiple of the number that was input?
basicaly unless the number is a multiple of 10 it would move on to a different equation
Last edited by Jhonalid1; June 4th, 2012 at 07:55 PM.
-
April 21st, 2012, 02:48 PM #2Code:
if(theNumber % inputNumber == 0){ execute(equation); } else { moveOn(); }

Reply With Quote
Bookmarks