LAB 2

 

i open python and enter the options for the integers then i wrote the math formulas then execute the program and choose the numbers 8 and 10 . the program ran and give me the results on the bottom

 

lab 2
option=1
while option==1:
option=input(‘Menu: (1) Enters (2) Exit’)
print (‘option’)
if option==1:
x=input(‘Enter x’)
y=input (‘Enter 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
if x>y:
print (‘x>y’)
pass
elif x<y:
print (‘x<y’)
pass
else:
print (‘x=y’)

Lab 2.1