Hello,
How can I program in if a number is a multiple of 10 then output it?
Can't think of a way to do it....
Printable View
Hello,
How can I program in if a number is a multiple of 10 then output it?
Can't think of a way to do it....
modulus operator '%' returns the remainder of a division.
if( x % 10 == 0 ) //is divisibe by ten
Thank you very much.