lab 3

Re-write lab #2 this time using functions. Your program should display a menu to the user with the following
options:
1- Sum numbers
2- Subtract numbers
3- Multiply numbers
4- Divide numbers
5- Remainder of numbers
6- Compare numbers
7- Exit
After the user makes a selection, the program should ask for two integer numbers x and y and perform the
selected operation and display the result. These operations must be implemented using functions. After the
appropriate function is called, the computation performed, and the results displayed, the program should return
the main menu and continue until the user chooses option 7 to exit.

# ask the user to enter:
# 1 for sum numbers
# 2 for subtract numbers
# 3 for multiply numbers
# 4 for divide numbers
# 5 for remainder numbers
# 6 for compare numbers
# 7 for exit

input (‘Enter 7for exit’)

print input

>>>
Enter 1 for sum numbers35

>>> 35+20
55
>>> ================================ RESTART ================================
>>>
Enter 2 for subtract numbers20

>>> 20-10
10
>>> ================================ RESTART ================================
>>>
Enter 3 for multiply numbers25

>>> 15*3
45
>>> ================================ RESTART ================================
>>>
Enter 4 for divide numbers30

>>> 30/10
3
>>> ================================ RESTART ================================
>>>
Enter 5 for remainder numbers85

>>> 85/5
17
>>> ================================ RESTART ================================
>>>
Enter 6 for compare numbers25

>>> 25>20
True
>>> ================================ RESTART ================================
>>>
Enter 7for exit