lab 2

Description

have to program that displays a menu to the user with the following options (1) enter a number (2) exit. When the user enters option 1, the program will ask for two integer numbers x and y.

xin = input(‘please enter first #:’)
yin = input(‘please enter your 2nd #:’)

x = int(xin)
y = int(yin)

print(x+y)
print(x-y)
print(x/y)
print(x*y)
print(x%y)

if x > y:

print('x is greater than y')
else:

print('y is greater than x')JQlab2

Leave a Reply

Your email address will not be published. Required fields are marked *