Does anyone know how to check whether a number is a multiple of 3 without using arithmatic operators!!!!!!!
Thanks in advance!!!!
Does anyone know how to check whether a number is a multiple of 3 without using arithmatic operators!!!!!!!
Thanks in advance!!!!
How could you do it without arithmetic operators; surely that's impossible?
Or are you meant to use bit-fiddling techniques?
it's ironic considerate rarity patron of love higher knowledge engulfs me...
I believe you use 'mod'.
For example
if( 15mod3 == 0 ) {
I think. Not sure.
EDIT* Actually on another post, I realise maybe instead of 'mod' it would be '%'
Don't you count the modulus operator '%' as an arithmetic operator then?Originally Posted by dwlu244
===
Don't grumble about what you can't have;
be grateful you don't get what you deserve.