So what I did in this WSQ was exactly this:
x = input(“Input first integer: “)
y = input(“Input second integer: “)WSQ03
x = int(x)
y = int(y)

a = x + y
b = x – y
c = x * y
d = x // y
e = x&y
print(
“The sum is:”,a,
“The difference is:”,b)
print(“The multiplication is:”,c,
“The integer division is:”,d,
“The remainder is:”,e
)

#Goddamn floating points….

The code is pretty much self explanatory, I used input arguments and variable definitions to make all the mathematical operations.

Every resource I used, either we saw it in class or is in the book.

CC BY 4.0 WSQ03 – Fun With Numbers by davidg2897 is licensed under a Creative Commons Attribution 4.0 International License.