Instructions:
Write a program that asks the user to enter two integer numbers x and y. The program should perform the following operations and display the results back:
1- The sum x + y
2- The difference x – y
3- The product x * y
4- The quotient x/y
5- The remainder x%y
6- Whether x is less than, equal, or greater than y
After displaying the results, the program should ask again for two integer numbers and repeat the operations for the new values entered. If either the value of x or y entered by the user is 0 (zero), the program should finish.
On your OpenLab portfolio post the following items, following the Lab Report Example:
- Lab description and your experience in your own words.
- Copy/paste of the code you typed, properly formatted.
- Screenshots of your results.
x= input ('Enter the value of x')
y= input('enter the value of y:')
print 'Enter 1 to sum x and y'
print 'Enter 2 to subtract x from y'
z = ('Enter selection: ')
if z==1
results = x+y
print 'The sum of x and y is:', x+y