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....
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
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Thank you very much.