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
1
hello dear friend hope it help you xd
Attachments:
Answered by
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
Business Studies,
20 days ago
Physics,
20 days ago
Computer Science,
1 month ago
Math,
1 month ago
English,
8 months ago
Science,
8 months ago
Science,
8 months ago