Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Bitwise-operations/Elena/bitwise-operations.elena
Normal file
19
Task/Bitwise-operations/Elena/bitwise-operations.elena
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import extensions;
|
||||
|
||||
extension testOp
|
||||
{
|
||||
bitwiseTest(y)
|
||||
{
|
||||
console.printLine(self," and ",y," = ",self.and(y));
|
||||
console.printLine(self," or ",y," = ",self.or(y));
|
||||
console.printLine(self," xor ",y," = ",self.xor(y));
|
||||
console.printLine("not ",self," = ",self.Inverted);
|
||||
console.printLine(self," shr ",y," = ",self.shiftRight(y));
|
||||
console.printLine(self," shl ",y," = ",self.shiftLeft(y));
|
||||
}
|
||||
}
|
||||
|
||||
public program()
|
||||
{
|
||||
console.loadLineTo(new Integer()).bitwiseTest(console.loadLineTo(new Integer()))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue