Request easy ways to format as subscript and superscript

I was learning neural networks. There are a lot of notation using sub/superscripts.