a = int(input("Enter Number 1 : ")) b = int(input("Enter Number 2 : ")) print("Assignment Operators Example ") print("Number 1 =",a,"\nNumber 2 =",b) a += b print("Assignment Addition Example (+=) : =",a) a -= b print("Assignment Subtraction Example (-=) : =",a) a *= b print("Assignment Multiplication Example (*=) : =",a) a /= b print("Assignment Division Example (/=) : =",a) a %= b print("Assignment Modulo Example (%=) : =",a) a //= b print("Assignment Floor Division Example (//=) : =",a) a **= b print("Assignment Exponent Example (**=) : =",a)To download raw file Click Here
Enter Number 1 : 20 Enter Number 2 : 5 Assignment Operators Example Number 1 = 20 Number 2 = 5 Assignment Addition Example (+=) : = 25 Assignment Subtraction Example (-=) : = 20 Assignment Multiplication Example (*=) : = 100 Assignment Division Example (/=) : = 20.0 Assignment Modulo Example (%=) : = 0.0 Assignment Floor Division Example (//=) : = 0.0 Assignment Exponent Example (**=) : = 0.0
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions