In Python, arithmetic operators are used to perform mathematical operations like addition, subtraction, multiplication, division, modulus, and exponentiation. These operators are represented by symbols such as +, -, *, /, %, and **.
This program is a simple Python script that performs basic arithmetic operations on two numbers inputted by the user. Here's a step-by-step explanation of what the code does:
a=int(input("Enter Number 1 : ")) b=int(input("Enter Number 2 : ")) print("Arithmetic Operations") print("Addition :",a + b) print("Subtraction :",a - b) print("Multiplication :",a * b) print("Division :",a / b) print("Modulo :",a % b) print("Exponentiation :",a ** b) print("Floor Division :",a // b)To download raw file Click Here
Enter Number 1 : 20 Enter Number 2 : 13 Arithmetic Operations Addition : 33 Subtraction : 7 Multiplication : 260 Division : 1.5384615 Modulo : 7 Exponentiation : 81920000 Floor Division : 1
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions