Lab 2

Lab Description:

In this lab we will Write a 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. The program should perform the following operations and display the results back.

 

print “menu select and option:” print (“(1) enter numbers : (2) exit “) “option=input” if (1): x=input(“enter value =x”) y=input(“eneter value =y”) z=(“x+y”) print “sum of x+y =”,z

 

 

ScreenShot of my work

Screen Shot 2013-10-07 at 7.32.10 PM

Leave a Reply

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