Lab 2

I finally did it, i guess is better then the last one, a friend helped me out.Lab2

x = int(input (‘please enter a value for x ? \n ‘ ) )

y= int(input (‘please enter a value for y? \n ‘ ) )

x = int (x)

y = int (y)

while x != 0 and y != 0:

print (x+y)
print (x-y)
print(x*y)
print(x/y)
print(x%y)
if x < y:
print (‘x is less than y’)
elif x > y:
print(‘y is less than x’)
else:
print(‘x is equal to y’)
x=int(input ( ‘ please enter a value for x?\n’))

y=int(input ( ‘ please enter a value for y?\n’))
print

Leave a Reply

Your email address will not be published.