bool canbedividedBy3(int nextBit) { static int remainder = 0; remainder = (remainder * 2 + nextBit) % 3; return (remainder == 0); };
bool canbedividedBy3(int nextBit) { static int remainder = 0; remainder = (remainder * 2 + nextBit) % 3; return (remainder == 0); };