2023-07-01 11:58:00 -04:00
|
|
|
import extensions;
|
|
|
|
|
|
|
|
|
|
extension testOp
|
|
|
|
|
{
|
2025-08-11 18:05:26 -07:00
|
|
|
bitwiseTest(y)
|
|
|
|
|
{
|
|
|
|
|
Console.printLine(self," and ",y," = ",self.band(y));
|
|
|
|
|
Console.printLine(self," or ",y," = ",self.bor(y));
|
|
|
|
|
Console.printLine(self," xor ",y," = ",self.bxor(y));
|
|
|
|
|
Console.printLine("not ",self," = ",self.BInverted);
|
|
|
|
|
Console.printLine(self," shr ",y," = ",self.shiftRight(y));
|
|
|
|
|
Console.printLine(self," shl ",y," = ",self.shiftLeft(y));
|
|
|
|
|
}
|
2023-07-01 11:58:00 -04:00
|
|
|
}
|
|
|
|
|
|
2026-02-01 16:33:20 -08:00
|
|
|
public Program()
|
2023-07-01 11:58:00 -04:00
|
|
|
{
|
2025-08-11 18:05:26 -07:00
|
|
|
Console.loadLineTo(new Integer()).bitwiseTest(Console.loadLineTo(new Integer()))
|
2023-07-01 11:58:00 -04:00
|
|
|
}
|