In your Document click Insert then Symbol. In the grid that appears go down a little, just below the basic Latin lower case letters
and you will see the squared sign which you simply highlight and then click Insert. Make sure your cursor was directly behind the number you wish to square.
I assume that you mean to underline the > sign. Simply highlight the > and then click the U button at the top of your Document.