Ruby program to set the specific bit using the bitwise operator
num=5
num = num | (1<<3)
print "Num: ",num
Output:
Num: 13
num=5
num = num | (1<<3)
print "Num: ",num
Output:
Num: 13