Arithmetic Operators are used to do the mathematical operations as per the user required like adding , subtracting , dividing the two numbers

Addition Method
Arithmetic Operator ” + ” (Addition…)
code is below copied and use it…
x = 10
y = 20
print (x+y)
Code written in different ways but the concept is same…
x = 10
y = 20
result = x + y
print (result)
where ” + ” is arithmetic operator and add the x and y and print their result..
Subtraction Method
Arithmetic Operator ‘ – ” ( subtraction )
Code is below copied and use it…
x = 10
y = 20
print (x-y)
Code written in different ways but the concept is same…
x = 10
y = 20
result = x - y
print (result)
where ” – ” is arithmetic operator and subtract the x and y and print their result..
Multiplication Method
Arithmetic Operator ” * ” ( Multiply )
Code is below copied and use it…
x = 10
y = 20
print (x*y)
Code written in different ways but the concept is same…
x = 10
y = 20
result = x * y
print (result)
where ” * ” is arithmetic operator and multiply the x and y and print their result..
Division Method
Arithmetic Operator ” / ” ( Divide )
code is below copied and use it…
x = 10
y = 20
print (x/y)
Code written in different ways but the concept is same…
x = 10
y = 20
result = x / y
print (result)
where ” / ” is arithmetic operator and divide the x and y and print their result..
subscribe us for updates…
Leave a Reply