Revised code to allow floats as inputs.
Fixed cube and square, and checks length of user input.
Checks for numbers as valid input