def sum_without_operator(a, b):
    while b != 0:
        carry = a & b
        a = a ^ b
        b = carry << 1
    return a

# Example usage:
num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
result = sum_without_operator(num1, num2)
print(f"The sum of {num1} and {num2} is: {result}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: