Computer Science, asked by iswarram329, 1 month ago

Write a program to read two numbers from the user. Operator bitwise ^ operator on them and display the result in python programming

Answers

Answered by Anonymous
1

hello dear friend hope it help you xd

Attachments:
Answered by dreamrob
1

Answer:

^: Bitwise XOR operator

Program:

a = int(input("Enter first number: "))

b = int(input("Enter second number: "))

c = a^b

print ("Bitwise XOR Operation of", a, "and", b, "=", c)

Output 1:

Enter first number: 12

Enter second number: 25

Bitwise XOR Operation of 12 and 25 = 21

Output 2:

Enter first number: 12

Enter second number: 25

Bitwise XOR Operation of 12 and 25 = 21

Similar questions