Lab 2 and Lab 3 – Control Flow and Function

In this lab, I am using the if, else and elif statements with the boolleen expression ” == ” giving the program commands to choose from the selections listed. You have to enter the value for x and y then select one of the statement. Also I included an exit program if you choose to exit the program it will say ” good bye! “. The program will continue until you type in another number besides “1” . After, you select one of the statements your results will display the chosen selection. To make the program continue you have to use the while loop over the selection, the statement must “true” to work. The program will stop if you do not wish to continue.

Code:

Results: