Who is taller? Finding larger of 2
Use the function getHeight to find the taller of two animals
Who is taller? Finding larger of 2
Use the function getHeight to find the taller of two animals
This video shows how to use an if control structure to find which animal is the tallest.
Text of videoAfter watching this video try to create a similar movie, then create one to find who is shorter.
Don't forget to change the heights to test all of the possibilities.