Question: how to type x squared?
Answer: For Windows users, In Notepad ,you can type Alt code for a². ...  In Wordpad, you can use Superscript feature.