While I was working on completion of my CS notes, I was looking for writing exponent numbers and googled it. In Turkish results I’ve come to have found this solution
Write n2 and hightligh the number, then later on keep pressing on Alt and 0178 will give you this outcome n², ALT 0179 will give you n³