This is a python code to perform basic arithmetic operations.
Contents
Python Program
Here is the code:
#Generate two random numbers ‘x’ & ‘y’ and then print addition, subtraction, division, and multiplication.
x = 4
y = 6
print('X = ',x)
print('Y = ', y)
print('X + Y = ', x + y)
print('X - Y = ', x - y)
print('X * Y = ', x * y)
print('X / Y = ', x / y)
print('X % Y = ', x % y)
# This code is contributed by Ahmad Shafiq