# Is there a way to do multiples in c++?

**URL:** <https://forum.kirupa.com/t/is-there-a-way-to-do-multiples-in-c/328133>\
**Category:** programming\
**Created:** [April 21, 2012, 6:10pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-do-multiples-in-c/328133 "2012-04-21T18:10:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhonalid1](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jhonalid1](https://forum.kirupa.com/u/Jhonalid1)\
**Post date:** [April 21, 2012, 6:10pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-do-multiples-in-c/328133/1 "2012-04-21T18:10:13Z")

</div>

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  
[TABLE=“width: 64”]  
[TR]  
[TD=“class: xl64, width: 64”][http://www.kirupa.com/forum/showthread.php?372122-Is-there-a-way-to-do-multiples-in-c&p=2638299#post2638299[/TD]](http://www.kirupa.com/forum/showthread.php?372122-Is-there-a-way-to-do-multiples-in-c&p=2638299#post2638299%5B/TD%5D)  
[/TR]  
[/TABLE]
