Write an algorithm and pseudocode that represents a program that allows a user to enter two numbers. Your program should calculate the sum, difference (both directions), product, and quotient (both directions) of the two numbers.
read x,y
sum = x+y
diff1 = x-y
diff2 = y-x
product = x*y
quot1 = x/y
quot2 = y/x