Exercise 2 - Lowest Number
A modular algorithm is required to take two integers (a & b), and determine the smallest (lowest) number of the pair. For example:
Finish writing the module for lowestNumber
in pseudocode first:
BEGIN lowestNumber(a , b) IF ... RETURN ... END BEGIN INPUT x INPUT y PRINT lowestNumber(x , y) END
Once the algorithm plan is complete, code the lowestNumber
module below:
def lowestNumber(a , b): #keep typing here... x = int(input('x: ')) y = int(input('y: ')) print( lowestNumber(x , y) )