Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Bitwise-operations/Sidef/bitwise-operations.sidef
Normal file
10
Task/Bitwise-operations/Sidef/bitwise-operations.sidef
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
func bitwise(a, b) {
|
||||
say ('a and b : ', a & b)
|
||||
say ('a or b : ', a | b)
|
||||
say ('a xor b : ', a ^ b)
|
||||
say ('not a : ', ~a)
|
||||
say ('a << b : ', a << b) # left shift
|
||||
say ('a >> b : ', a >> b) # arithmetic right shift
|
||||
}
|
||||
|
||||
bitwise(14,3)
|
||||
Loading…
Add table
Add a link
Reference in a new issue