How do you code a question that ask if the first integer is a multiple of the second integer?
1 2 3 4
if (a%b==2) {
cout<<a<<"is a multiple of b";
return 0;
}
i realize that its any number can be a multiple of another number as long as it doesn't have a remainder... so im a bit lost there. 2 is not necessarily way to do it.
PLease halp. :)
well, they didnt tell you what operator to use. Also, what if its the first integer is 10 and the second integer is 100. So its going to be 10X10. it can be divided into 100 w/o any remainder left. In the code, i only have 2 but if that wasn't the case and its 10...how does that work. Or im confusing myself?